summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-masking/clip-path/clip-path-fixed-nested.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/css-masking/clip-path/clip-path-fixed-nested.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/css-masking/clip-path/clip-path-fixed-nested.html')
-rw-r--r--testing/web-platform/tests/css/css-masking/clip-path/clip-path-fixed-nested.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-masking/clip-path/clip-path-fixed-nested.html b/testing/web-platform/tests/css/css-masking/clip-path/clip-path-fixed-nested.html
new file mode 100644
index 0000000000..5090bc2aed
--- /dev/null
+++ b/testing/web-platform/tests/css/css-masking/clip-path/clip-path-fixed-nested.html
@@ -0,0 +1,38 @@
+<!doctype html>
+<title>CSS Test: nested clip-path() inside the same reference frame with position: fixed</title>
+<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
+<link rel="author" href="https://mozilla.org" title="Mozilla">
+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1501111">
+<link rel="help" href="https://drafts.fxtf.org/css-masking/#the-clip-path">
+<link rel="match" href="clip-path-fixed-nested-ref.html">
+<style>
+ body, html {
+ margin: 0;
+ padding: 0;
+ }
+ .outer-clip {
+ height: 100vh;
+ clip-path: inset(0 0 0 0);
+ background: green;
+ }
+ .fixed {
+ position: fixed;
+ }
+ .inner-clip {
+ height: 50px;
+ width: 50px;
+ clip-path: inset(0 0 0 0);
+ }
+ .inner-clip-contents {
+ height: 100px;
+ width: 100px;
+ background: purple;
+ }
+</style>
+<div class="outer-clip">
+ <div class="fixed">
+ <div class="inner-clip">
+ <div class="inner-clip-contents"></div>
+ </div>
+ </div>
+</div>