summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/backdrop-filter-paint-order.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/filter-effects/backdrop-filter-paint-order.html
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/filter-effects/backdrop-filter-paint-order.html')
-rw-r--r--testing/web-platform/tests/css/filter-effects/backdrop-filter-paint-order.html49
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/filter-effects/backdrop-filter-paint-order.html b/testing/web-platform/tests/css/filter-effects/backdrop-filter-paint-order.html
new file mode 100644
index 0000000000..b5499d4781
--- /dev/null
+++ b/testing/web-platform/tests/css/filter-effects/backdrop-filter-paint-order.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>backdrop-filter: Only filter objects painted before</title>
+<link rel="author" href="mailto:masonf@chromium.org">
+<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
+<link rel="match" href="backdrop-filter-paint-order-ref.html">
+
+<div>
+ <p>Expected: A pure white box with a blue border, surrounded by green.<br>
+ No green should be observed within the white box.<br>
+ No dark/black should be observed within the white box either.</p>
+</div>
+
+<div class="filterbox"></div>
+<div class="greenbox top"></div>
+<div class="greenbox right"></div>
+<div class="greenbox bottom"></div>
+<style>
+.filterbox {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 150px;
+ left: 0px;
+ border: 1px solid blue;
+ backdrop-filter: blur(20px);
+}
+.greenbox {
+ position:absolute;
+ width: 150px;
+ height: 50px;
+ background: green;
+}
+.top {
+ top:100px;
+ left: 10px;
+}
+.right {
+ top:130px;
+ left: 102px;
+ width: 58px;
+ height: 150px;
+}
+.bottom {
+ top:252px;
+ left: 10px;
+}
+</style>
+