summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/contain-layout-ignored-cases-ib-split-001-ref.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-contain/contain-layout-ignored-cases-ib-split-001-ref.html
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-contain/contain-layout-ignored-cases-ib-split-001-ref.html')
-rw-r--r--testing/web-platform/tests/css/css-contain/contain-layout-ignored-cases-ib-split-001-ref.html76
1 files changed, 76 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-contain/contain-layout-ignored-cases-ib-split-001-ref.html b/testing/web-platform/tests/css/css-contain/contain-layout-ignored-cases-ib-split-001-ref.html
new file mode 100644
index 0000000000..eb787424ed
--- /dev/null
+++ b/testing/web-platform/tests/css/css-contain/contain-layout-ignored-cases-ib-split-001-ref.html
@@ -0,0 +1,76 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
+ <style>
+ .abspos-box {
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ }
+
+ /* The boxes should stack in the order that I've listed their CSS classes
+ here. The class names' first word (outside/before/inside/after) refers
+ to the boxes' DOM position, and "background"/"midground"/"foreground"
+ refers to their z-index values. */
+
+ .before-IB-background {
+ background: darkmagenta;
+ z-index: -1;
+ top: 50px;
+ left: 50px;
+ }
+ .after-IB-background {
+ background: magenta;
+ z-index: -1;
+ top: 70px;
+ left: 70px;
+ }
+ .outside-span-midground {
+ background: darkkhaki;
+ top: 90px;
+ left: 90px;
+ }
+ .inside-IB-midground {
+ background: khaki;
+ top: 110px;
+ left: 110px;
+ }
+ .before-IB-foreground {
+ background: darkcyan;
+ z-index: 1;
+ top: 130px;
+ left: 130px;
+ }
+ .after-IB-foreground {
+ background: cyan;
+ z-index: 1;
+ top: 150px;
+ left: 150px;
+ }
+ </style>
+</head>
+<body>
+ <!-- The expectation here is that 'abspos-box' elements will all interact in
+ the same top-level stacking context. That means the box ordering should
+ be (back to front): darkmagenta/magenta/darkkhaki/khaki/darkcyan/cyan,
+ with the boxes stacked (visually) from top-left to bottom-right. -->
+
+ <div class="abspos-box outside-span-midground"></div>
+
+ <!-- Note: this file is identical to the testcase,
+ except for the lack of "contain: layout" on this span. -->
+ <span>
+ <div class="abspos-box before-IB-background"></div>
+ <div class="abspos-box before-IB-foreground"></div>
+ <!-- This unstyled div crates the IB split: -->
+ <div>
+ <div class="abspos-box inside-IB-midground"></div>
+ </div>
+ <div class="abspos-box after-IB-background"></div>
+ <div class="abspos-box after-IB-foreground"></div>
+ </span>
+</body>
+</html>