Bug 1623672 [wpt PR 22334] - Disallow backdrop-filter on the root element of the main page., a=testonly
authorChris Harrelson <chrishtr@chromium.org>
Mon, 23 Mar 2020 11:42:35 +0000
changeset 520500 d134b5d60e158cb20433c92845f759457cefbbee
parent 520499 cd4e77469af17455981a4f11b1431487dc1d2595
child 520501 1230d33aa1ba5431ba60d8aed1996028b630037c
push id37252
push usermalexandru@mozilla.com
push dateThu, 26 Mar 2020 15:34:27 +0000
treeherdermozilla-central@31360ced8ff8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1623672, 22334, 1979258, 1061802, 2109318, 751883
milestone76.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 1623672 [wpt PR 22334] - Disallow backdrop-filter on the root element of the main page., a=testonly Automatic update from web-platform-tests Disallow backdrop-filter on the root element of the main page. There is nothing behind the root element stacking context in the same frame, and it's also important not to blend with any white behind the root frame. This is also causing a problem at the moment in Chromium because to implement the semantics in [1] for filters of the root element group applying after drawing and before compositing into the root group, we now paint two PaintChunks for the LayoutView [2]. The second such PaintChunk has a PropertyTreeState that includes filters (including at the moment backdrop-filter). But since it's not composited the code fails to work correctly. This CL does not apply to iframes, because they do have a well-defined backdrop from their containing frame's contents. [1] https://drafts.fxtf.org/compositing/#pagebackdrop [2] https://chromium-review.googlesource.com/c/chromium/src/+/1979258 Bug: 1061802 Change-Id: I9212213d1787647b171fbefcf18ef80d51b74a2b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2109318 Reviewed-by: Mason Freed <masonfreed@chromium.org> Commit-Queue: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/master@{#751883} -- wpt-commits: a587550f729c270ae55b56a92c94605461cc919a wpt-pr: 22334
testing/web-platform/tests/css/filter-effects/backdrop-filter-root-element-ref.html
testing/web-platform/tests/css/filter-effects/backdrop-filter-root-element.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/filter-effects/backdrop-filter-root-element-ref.html
@@ -0,0 +1,11 @@
+<!doctype HTML>
+<meta charset="utf-8">
+<title>backdrop-filter: no effect on the root element</title>
+<link rel="author" title="Chris Harrelson" href="mailto:chrishtr@chromium.org">
+<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
+<style>
+  html {
+    background: green;
+  }
+</style>
+Test
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/filter-effects/backdrop-filter-root-element.html
@@ -0,0 +1,13 @@
+<!doctype HTML>
+<meta charset="utf-8">
+<title>backdrop-filter: no effect on the root element</title>
+<link rel="author" title="Chris Harrelson" href="mailto:chrishtr@chromium.org">
+<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
+<link rel="match"  href="backdrop-filter-root-element-ref.html">
+<style>
+  html {
+    background: green;
+    backdrop-filter: invert(1);
+  }
+</style>
+Test