summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-right-002-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-right-002-ref.html')
-rw-r--r--testing/web-platform/tests/css/css-position/sticky/reference/position-sticky-right-002-ref.html68
1 files changed, 68 insertions, 0 deletions
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(&quot;first-scrolling-container&quot;).scrollLeft = 25; document.getElementById(&quot;second-scrolling-container&quot;).scrollLeft = 100; document.getElementById(&quot;third-scrolling-container&quot;).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>