summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-anchor-position/reference
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-anchor-position/reference')
-rw-r--r--testing/web-platform/tests/css/css-anchor-position/reference/anchor-position-circular-ref.html24
-rw-r--r--testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-001.tentative-ref.html47
-rw-r--r--testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-002.tentative-ref.html55
-rw-r--r--testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-004.tentative-ref.html68
-rw-r--r--testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-fallback.tentative-ref.html46
-rw-r--r--testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-fixedpos-002-ref.html34
-rw-r--r--testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-to-sticky-001-ref.html39
-rw-r--r--testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-to-sticky-002-ref.html36
-rw-r--r--testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-to-sticky-004-ref.html39
-rw-r--r--testing/web-platform/tests/css/css-anchor-position/reference/sticky-anchor-position-invalid-ref.html1
10 files changed, 389 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-anchor-position/reference/anchor-position-circular-ref.html b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-position-circular-ref.html
new file mode 100644
index 0000000000..6beb7c77e9
--- /dev/null
+++ b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-position-circular-ref.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<style>
+div {
+ width: 100px;
+ height: 100px;
+}
+
+#anchored1 {
+ position: absolute;
+ left: 0;
+ top: 0;
+ background: orange;
+}
+
+#anchored2 {
+ position: absolute;
+ left: 0;
+ top: 100px;
+ background: green;
+}
+</style>
+
+<div id="anchored1"></div>
+<div id="anchored2"></div>
diff --git a/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-001.tentative-ref.html b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-001.tentative-ref.html
new file mode 100644
index 0000000000..fb858cc105
--- /dev/null
+++ b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-001.tentative-ref.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<style>
+body {
+ margin: 0;
+}
+
+div {
+ width: 100px;
+ height: 100px;
+}
+
+#scroller {
+ overflow: scroll;
+}
+
+#anchor {
+ height: 20px;
+ background: orange;
+}
+
+#anchored1 {
+ position: absolute;
+ top: 50px;
+ left: 0;
+ background: green;
+}
+
+#anchored2 {
+ position: absolute;
+ top: 150px;
+ left: 0;
+ background: lime;
+}
+
+</style>
+
+<div id="scroller">
+ <div style="height: 230px"></div>
+ <div id="anchor"></div>
+ <div style="height: 230px"></div>
+</div>
+<div id="anchored1"></div>
+<div id="anchored2"></div>
+
+<script>
+scroller.scrollTop = 200;
+</script>
diff --git a/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-002.tentative-ref.html b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-002.tentative-ref.html
new file mode 100644
index 0000000000..9dde5d00f0
--- /dev/null
+++ b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-002.tentative-ref.html
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<style>
+body {
+ margin: 0;
+}
+
+div {
+ width: 100px;
+ height: 100px;
+}
+
+#scroller1 {
+ width: 200px;
+ height: 200px;
+}
+
+#scroller1,#scroller2 {
+ overflow: scroll;
+}
+
+#anchor {
+ height: 20px;
+ background: orange;
+}
+
+#anchored1 {
+ position: absolute;
+ top: 70px;
+ background: green;
+}
+
+#anchored2 {
+ position: absolute;
+ top: 170px;
+ background: lime;
+}
+
+</style>
+
+<div id="scroller1">
+ <div style="height: 100px"></div>
+ <div id="scroller2">
+ <div style="height: 230px"></div>
+ <div id="anchor"></div>
+ <div style="height: 230px"></div>
+ </div>
+ <div style="height: 250px"></div>
+</div>
+<div id="anchored1"></div>
+<div id="anchored2"></div>
+
+<script>
+scroller1.scrollTop = 80;
+scroller2.scrollTop = 200;
+</script>
diff --git a/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-004.tentative-ref.html b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-004.tentative-ref.html
new file mode 100644
index 0000000000..22c2270dde
--- /dev/null
+++ b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-004.tentative-ref.html
@@ -0,0 +1,68 @@
+<!DOCTYPE html>
+<style>
+body {
+ margin: 0;
+ height: 700px;
+}
+
+div {
+ width: 100px;
+ height: 100px;
+}
+
+#scroller1 {
+ width: 200px;
+ height: 200px;
+ position: relative;
+}
+
+#scroller1,#scroller2,#scroller3 {
+ overflow: scroll;
+}
+
+#anchor1 {
+ height: 20px;
+ background: orange;
+}
+
+#anchor2 {
+ height: 20px;
+ background: cyan;
+}
+
+#anchored1 {
+ position: absolute;
+ top: 70px;
+ background: green;
+}
+
+#anchored2 {
+ position: absolute;
+ top: 120px;
+ background: lime;
+}
+</style>
+
+<div id="scroller1">
+ <div style="height: 100px"></div>
+ <div id="scroller2">
+ <div style="height: 230px"></div>
+ <div id="anchor1"></div>
+ <div style="height: 230px"></div>
+ </div>
+ <div style="height: 250px"></div>
+</div>
+<div id="anchored1">
+ <div id="scroller3">
+ <div style="height: 230px"></div>
+ <div id="anchor2"></div>
+ <div style="height: 230px"></div>
+ </div>
+</div>
+<div id="anchored2"></div>
+
+<script>
+scroller1.scrollTop = 80;
+scroller2.scrollTop = 200;
+scroller3.scrollTop = 200;
+</script>
diff --git a/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-fallback.tentative-ref.html b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-fallback.tentative-ref.html
new file mode 100644
index 0000000000..0933430fc3
--- /dev/null
+++ b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-fallback.tentative-ref.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<style>
+body {
+ margin: 0;
+}
+
+div {
+ width: 100px;
+ height: 100px;
+}
+
+#scroller {
+ overflow: scroll;
+ width: 300px;
+ height: 300px;
+}
+
+#anchor {
+ background: orange;
+ margin: 250px 0;
+}
+
+#anchored1 {
+ position: absolute;
+ background: green;
+ top: 50px;
+ left: 100px;
+}
+
+#anchored2 {
+ position: absolute;
+ background: lime;
+ top: 150px;
+ left: 100px;
+}
+</style>
+
+<div id="scroller">
+ <div id="anchor"></div>
+</div>
+<div id="anchored1"></div>
+<div id="anchored2"></div>
+
+<script>
+scroller.scrollTop = 200;
+</script>
diff --git a/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-fixedpos-002-ref.html b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-fixedpos-002-ref.html
new file mode 100644
index 0000000000..7bae7bfbb8
--- /dev/null
+++ b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-fixedpos-002-ref.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<style>
+body {
+ margin: 0;
+ height: 2000px;
+}
+
+div {
+ width: 100px;
+ height: 100px;
+}
+
+#anchor {
+ position: fixed;
+ left: 300px;
+ top: 300px;
+ background: orange;
+}
+
+#anchored {
+ position: fixed;
+ left: 400px;
+ top: 300px;
+ background: green;
+}
+
+</style>
+
+<div id="anchor"></div>
+<div id="anchored"></div>
+
+<script>
+document.documentElement.scrollTop = 200;
+</script>
diff --git a/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-to-sticky-001-ref.html b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-to-sticky-001-ref.html
new file mode 100644
index 0000000000..2327b50607
--- /dev/null
+++ b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-to-sticky-001-ref.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<style>
+body {
+ margin: 0;
+}
+
+div {
+ width: 100px;
+ height: 100px;
+}
+
+#scroller {
+ overflow: scroll;
+}
+
+#anchor {
+ height: 20px;
+ background: orange;
+}
+
+#anchored {
+ position: absolute;
+ top: 20px;
+ left: 0;
+ background: green;
+}
+
+</style>
+
+<div id="scroller">
+ <div style="height: 200px"></div>
+ <div id="anchor"></div>
+ <div style="height: 150px"></div>
+</div>
+<div id="anchored"></div>
+
+<script>
+scroller.scrollTop = 200;
+</script>
diff --git a/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-to-sticky-002-ref.html b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-to-sticky-002-ref.html
new file mode 100644
index 0000000000..d08d3545d6
--- /dev/null
+++ b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-to-sticky-002-ref.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<style>
+body {
+ margin: 0;
+}
+
+div {
+ width: 100px;
+ height: 100px;
+}
+
+#scroller {
+ overflow: scroll;
+}
+
+#anchor {
+ height: 20px;
+ background: orange;
+}
+
+#anchored {
+ background: green;
+}
+
+</style>
+
+<div id="scroller">
+ <div style="height: 200px"></div>
+ <div id="anchor"></div>
+ <div id="anchored"></div>
+ <div style="height: 50px"></div>
+</div>
+
+<script>
+scroller.scrollTop = 200;
+</script>
diff --git a/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-to-sticky-004-ref.html b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-to-sticky-004-ref.html
new file mode 100644
index 0000000000..d97b4ffc14
--- /dev/null
+++ b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-to-sticky-004-ref.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<style>
+body {
+ margin: 0;
+}
+
+div {
+ width: 100px;
+ height: 100px;
+}
+
+#scroller {
+ overflow: scroll;
+}
+
+#anchor {
+ height: 20px;
+ background: orange;
+}
+
+#anchored {
+ position: absolute;
+ top: 70px;
+ left: 0;
+ background: green;
+}
+
+</style>
+
+<div id="scroller">
+ <div style="height: 250px"></div>
+ <div id="anchor"></div>
+ <div style="height: 180px"></div>
+</div>
+<div id="anchored"></div>
+
+<script>
+scroller.scrollTop = 200;
+</script>
diff --git a/testing/web-platform/tests/css/css-anchor-position/reference/sticky-anchor-position-invalid-ref.html b/testing/web-platform/tests/css/css-anchor-position/reference/sticky-anchor-position-invalid-ref.html
index 3a48755874..c4a5dd3735 100644
--- a/testing/web-platform/tests/css/css-anchor-position/reference/sticky-anchor-position-invalid-ref.html
+++ b/testing/web-platform/tests/css/css-anchor-position/reference/sticky-anchor-position-invalid-ref.html
@@ -15,6 +15,7 @@
position: sticky;
height: 150px;
background: green;
+ top: 42px;
}
</style>
<div id="scroll-container">