Bug 1640823 [wpt PR 23765] - Load pending resources after style adjustments., a=testonly
authorRune Lillesveen <futhark@chromium.org>
Wed, 27 May 2020 21:36:38 +0000
changeset 533056 a5e2ffab8261722c789e678ece54f36e844c05c1
parent 533055 974e6a50e335a0e621aa44a81c8116f9556e743e
child 533057 9d767e432fd5738efba8e735ec2a6b423c0aafe0
push id37462
push usermalexandru@mozilla.com
push dateSat, 30 May 2020 09:46:43 +0000
treeherdermozilla-central@8aaca63ec5c6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1640823, 23765, 1085750, 2214897, 771748
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1640823 [wpt PR 23765] - Load pending resources after style adjustments., a=testonly Automatic update from web-platform-tests Load pending resources after style adjustments. We don't fetch resources for ComputedStyle which is in a display:none subtree or display:contents since [1]. Style adjustments are done to the display type in the StyleAdjuster and we need to make sure we load resources where display changes from a non-rendered value to a rendered one after style adjustments. Specifically, this happens with blockification of :root elements which are display:contents. [1] https://crrev.com/caf740f6c0b57ca102026f40f3cc62f9f3cf5159 Bug: 1085750 Change-Id: I7686c6f8bf4918bec5812d1bf893ad2c4cb9262c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2214897 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#771748} -- wpt-commits: 1c152f0e99b4ae9f10b62b70007821b072b00f75 wpt-pr: 23765
testing/web-platform/tests/css/css-display/display-contents-root-background-ref.html
testing/web-platform/tests/css/css-display/display-contents-root-background.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-display/display-contents-root-background-ref.html
@@ -0,0 +1,4 @@
+<!doctype html>
+<html style="background:green">
+<title>CSS Test Reference</title>
+<p>Pass if the background is green.</p>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-display/display-contents-root-background.html
@@ -0,0 +1,12 @@
+<!doctype html>
+<title>CSS Test: display:contents on root element blockified with rendered background.</title>
+<link rel="help" href="https://drafts.csswg.org/css-display/#the-display-properties">
+<link rel="help" href="https://drafts.csswg.org/css-display/#transformations">
+<link rel="match" href="display-contents-root-background-ref.html">
+<style>
+  :root {
+    display: contents;
+    background-image: url(../support/1x1-green.png);
+  }
+</style>
+<p>Pass if the background is green.</p>