summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-fallback-ref.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
commita90a5cba08fdf6c0ceb95101c275108a152a3aed (patch)
tree532507288f3defd7f4dcf1af49698bcb76034855 /testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-fallback-ref.html
parentAdding debian version 126.0.1-1. (diff)
downloadfirefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz
firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-fallback-ref.html')
-rw-r--r--testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-fallback-ref.html46
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-fallback-ref.html b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-fallback-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-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>