summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-scroll-snap/snap-after-relayout/layout-follows-focused-targeted-block-iframe.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-scroll-snap/snap-after-relayout/layout-follows-focused-targeted-block-iframe.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-scroll-snap/snap-after-relayout/layout-follows-focused-targeted-block-iframe.html')
-rw-r--r--testing/web-platform/tests/css/css-scroll-snap/snap-after-relayout/layout-follows-focused-targeted-block-iframe.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-scroll-snap/snap-after-relayout/layout-follows-focused-targeted-block-iframe.html b/testing/web-platform/tests/css/css-scroll-snap/snap-after-relayout/layout-follows-focused-targeted-block-iframe.html
new file mode 100644
index 0000000000..4f4b4309fb
--- /dev/null
+++ b/testing/web-platform/tests/css/css-scroll-snap/snap-after-relayout/layout-follows-focused-targeted-block-iframe.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+ <body>
+ <style>
+ .scroller {
+ width: 200px;
+ height: 200px;
+ border: solid 1px black;
+ overflow: scroll;
+ scroll-snap-type: both mandatory;
+ position: relative;
+ resize: both;
+ }
+ .target {
+ scroll-snap-align: start;
+ width: 50px;
+ height: 50px;
+ background-color: green;
+ position: absolute;
+ }
+ .target:target {
+ background-color: blue;
+ }
+ .target:focus {
+ background-color: yellow;
+ }
+ #box1 {
+ left: 150px;
+ top: 0px;
+ }
+ #box2 {
+ left: 0px;
+ top: 150px;
+ }
+ .space {
+ width: 500%;
+ height: 500%;
+ position: absolute;
+ }
+ </style>
+ <div class="scroller" id="scroller">
+ <div tabindex="1" id="box1" class="target">Box 1</div>
+ <div tabindex="1" id="box2" class="target">Box 2</div>
+ <div class="space"></div>
+ </div>
+ </body>
+
+</html>