diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /testing/web-platform/tests/css/css-position/sticky/reference | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-position/sticky/reference')
6 files changed, 406 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-bottom-002-ref.html b/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-bottom-002-ref.html new file mode 100644 index 0000000000..253ca7eebe --- /dev/null +++ b/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-bottom-002-ref.html @@ -0,0 +1,78 @@ +<!DOCTYPE html> + + <meta charset="UTF-8"> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> + + <style> + div.scrolling-container + { + display: inline-block; + height: 250px; + margin-right: 30px; + overflow: auto; + position: static; + width: 150px; + } + + div.vertical-spacer-200 + { + height: 200px; + } + + div.sticky + { + background-color: green; + height: 100px; + position: relative; + width: 100px; + } + + div#first-sticky + { + bottom: 100px; + } + + div#second-sticky + { + bottom: 50px; + } + </style> + + <body onload="document.getElementById("first-scrolling-container").scrollTop = 25; document.getElementById("second-scrolling-container").scrollTop = 100; document.getElementById("third-scrolling-container").scrollTop = 200;"> + + <p>Test passes if there are 3 filled green squares and <strong>no red</strong>. + + <div id="first-scrolling-container" class="scrolling-container"> <!-- 150w x 250h viewport --> + + <div class="vertical-spacer-200"></div> <!-- 100w x 200h --> + + <div id="first-sticky" class="sticky"></div> <!-- 100w x 100h --> + + <div class="vertical-spacer-200"></div> <!-- 100w x 200h --> + + </div> + + + <div id="second-scrolling-container" class="scrolling-container"> <!-- 150w x 250h viewport --> + + <div class="vertical-spacer-200"></div> <!-- 100w x 200h --> + + <div id="second-sticky" class="sticky"></div> <!-- 100w x 100h --> + + <div class="vertical-spacer-200"></div> <!-- 100w x 200h --> + + </div> + + + <div id="third-scrolling-container" class="scrolling-container"> <!-- 150w x 250h viewport --> + + <div class="vertical-spacer-200"></div> <!-- 100w x 200h --> + + <div id="third-sticky" class="sticky"></div> <!-- 100w x 100h --> + + <div class="vertical-spacer-200"></div> <!-- 100w x 200h --> + + </div> diff --git a/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-fixed-ancestor-002-ref.html b/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-fixed-ancestor-002-ref.html new file mode 100644 index 0000000000..abdc1dbcfa --- /dev/null +++ b/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-fixed-ancestor-002-ref.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> + + <meta charset="UTF-8"> + + <title>CSS Reference File</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> + + <style> + html, body, div + { + background-color: green; + color: white; + font-size: 40vh; + height: 100%; + margin: 0; + } + </style> + + <div>PASS</div> diff --git a/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-left-002-ref.html b/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-left-002-ref.html new file mode 100644 index 0000000000..75aa9a4c1f --- /dev/null +++ b/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-left-002-ref.html @@ -0,0 +1,74 @@ +<!DOCTYPE html> + + <meta charset="UTF-8"> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> + + <style> + div.scrolling-container + { + height: 150px; + margin-bottom: 30px; + overflow-y: hidden; + position: static; + white-space: nowrap; + width: 250px; + } + + div.horizontal-spacer-200 + { + display: inline-block; + height: 100%; + width: 200px; + } + + div.sticky + { + background-color: green; + display: inline-block; + height: 100px; + position: relative; + vertical-align: top; + width: 100px; + } + + div#first-sticky + { + left: 0px; + } + + div#second-sticky + { + left: 50px; + } + + div#third-sticky + { + left: 100px; + } + </style> + + <body onload="document.getElementById("first-scrolling-container").scrollLeft = 50; document.getElementById("second-scrolling-container").scrollLeft = 150; document.getElementById("third-scrolling-container").scrollLeft = 300;"> + + <p>Test passes if there are 3 filled green squares and <strong>no red</strong>. + + <div id="first-scrolling-container" class="scrolling-container"> + + <div class="horizontal-spacer-200"></div><div id="first-sticky" class="sticky"></div><div class="horizontal-spacer-200"></div> + + </div> + + + <div id="second-scrolling-container" class="scrolling-container"> + + <div class="horizontal-spacer-200"></div><div id="second-sticky" class="sticky"></div><div class="horizontal-spacer-200"></div> + + </div> + + <div id="third-scrolling-container" class="scrolling-container"> + + <div class="horizontal-spacer-200"></div><div id="third-sticky" class="sticky"></div><div class="horizontal-spacer-200"></div> + + </div> diff --git a/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-right-002-ref.html b/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-right-002-ref.html new file mode 100644 index 0000000000..3230e476b5 --- /dev/null +++ b/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-right-002-ref.html @@ -0,0 +1,68 @@ +<!DOCTYPE html> + + <meta charset="UTF-8"> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> + + <style> + div.scrolling-container + { + height: 150px; + margin-bottom: 30px; + overflow-y: hidden; + position: static; + white-space: nowrap; + width: 250px; + } + + div.horizontal-spacer-200 + { + display: inline-block; + height: 100%; + width: 200px; + } + + div.sticky + { + background-color: green; + display: inline-block; + height: 100px; + position: relative; + vertical-align: top; + width: 100px; + } + + div#first-sticky + { + right: 100px; + } + + div#second-sticky + { + right: 50px; + } + </style> + + <body onload="document.getElementById("first-scrolling-container").scrollLeft = 25; document.getElementById("second-scrolling-container").scrollLeft = 100; document.getElementById("third-scrolling-container").scrollLeft = 200;"> + + <p>Test passes if there are 3 filled green squares and <strong>no red</strong>. + + <div id="first-scrolling-container" class="scrolling-container"> + + <div class="horizontal-spacer-200"></div><div id="first-sticky" class="sticky"></div><div class="horizontal-spacer-200"></div> + + </div> + + <div id="second-scrolling-container" class="scrolling-container"> + + <div class="horizontal-spacer-200"></div><div id="second-sticky" class="sticky"></div><div class="horizontal-spacer-200"></div> + + </div> + + <div id="third-scrolling-container" class="scrolling-container"> + + <div class="horizontal-spacer-200"></div><div id="third-sticky" class="sticky"></div><div class="horizontal-spacer-200"></div> + + </div> diff --git a/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-top-002-ref.html b/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-top-002-ref.html new file mode 100644 index 0000000000..4a95591a56 --- /dev/null +++ b/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-top-002-ref.html @@ -0,0 +1,83 @@ +<!DOCTYPE html> + + <meta charset="UTF-8"> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> + + <style> + div.scrolling-container + { + display: inline-block; + height: 250px; + margin-right: 30px; + overflow: auto; + position: static; + width: 150px; + } + + div.vertical-spacer-200 + { + height: 200px; + } + + div.sticky + { + background-color: green; + height: 100px; + position: relative; + width: 100px; + } + + div#first-sticky + { + top: 0px; + } + + div#second-sticky + { + top: 100px; + } + + div#third-sticky + { + top: 100px; + } + </style> + + <body onload="document.getElementById("first-scrolling-container").scrollTop = 50; document.getElementById("second-scrolling-container").scrollTop = 200; document.getElementById("third-scrolling-container").scrollTop = 300;"> + + <p>Test passes if there are 3 filled green squares and <strong>no red</strong>. + + <div id="first-scrolling-container" class="scrolling-container"> <!-- 150w x 250h viewport --> + + <div class="vertical-spacer-200"></div> <!-- 100w x 200h --> + + <div id="first-sticky" class="sticky"></div> <!-- 100w x 100h --> + + <div class="vertical-spacer-200"></div> <!-- 100w x 200h --> + + </div> + + + <div id="second-scrolling-container" class="scrolling-container"> <!-- 150w x 250h viewport --> + + <div class="vertical-spacer-200"></div> <!-- 100w x 200h --> + + <div id="second-sticky" class="sticky"></div> <!-- 100w x 100h --> + + <div class="vertical-spacer-200"></div> <!-- 100w x 200h --> + + </div> + + + <div id="third-scrolling-container" class="scrolling-container"> <!-- 150w x 250h viewport --> + + <div class="vertical-spacer-200"></div> <!-- 100w x 200h --> + + <div id="third-sticky" class="sticky"></div> <!-- 100w x 100h --> + + <div class="vertical-spacer-200"></div> <!-- 100w x 200h --> + + </div> diff --git a/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-top-and-bottom-003-ref.html b/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-top-and-bottom-003-ref.html new file mode 100644 index 0000000000..36af9a33bc --- /dev/null +++ b/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-top-and-bottom-003-ref.html @@ -0,0 +1,83 @@ +<!DOCTYPE html> + + <meta charset="UTF-8"> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> + + <style> + div.scrolling-container + { + display: inline-block; + height: 250px; + margin-right: 30px; + overflow: auto; + position: static; + width: 150px; + } + + div.vertical-spacer + { + height: 200px; + } + + div.sticky + { + background-color: green; + height: 100px; + position: relative; + width: 100px; + } + + div#first-sticky + { + bottom: 25px; + } + + div#second-sticky + { + top: 0px; + } + + div#third-sticky + { + top: 75px; + } + </style> + + <body onload="document.getElementById("first-scrolling-container").scrollTop = 50; document.getElementById("second-scrolling-container").scrollTop = 150; document.getElementById("third-scrolling-container").scrollTop = 250;"> + + <p>Test passes if there are 3 filled green squares and <strong>no red</strong>. + + <div id="first-scrolling-container" class="scrolling-container"> <!-- 150w x 250h viewport --> + + <div class="vertical-spacer"></div> <!-- 100w x 200h --> + + <div id="first-sticky" class="sticky"></div> <!-- 100w x 100h --> + + <div class="vertical-spacer"></div> <!-- 100w x 200h --> + + </div> + + + <div id="second-scrolling-container" class="scrolling-container"> <!-- 150w x 250h viewport --> + + <div class="vertical-spacer"></div> <!-- 100w x 200h --> + + <div id="second-sticky" class="sticky"></div> <!-- 100w x 100h --> + + <div class="vertical-spacer"></div> <!-- 100w x 200h --> + + </div> + + + <div id="third-scrolling-container" class="scrolling-container"> <!-- 150w x 250h viewport --> + + <div class="vertical-spacer"></div> <!-- 100w x 200h --> + + <div id="third-sticky" class="sticky"></div> <!-- 100w x 100h --> + + <div class="vertical-spacer"></div> <!-- 100w x 200h --> + + </div> |