diff --git a/testing/web-platform/meta/MANIFEST.json b/testing/web-platform/meta/MANIFEST.json index 5ca58d26134f..4e485dd698f5 100644 --- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -320285,6 +320285,12 @@ {} ] ], + "css/css-scroll-snap/overflowing-snap-areas.html": [ + [ + "/css/css-scroll-snap/overflowing-snap-areas.html", + {} + ] + ], "css/css-scroll-snap/scroll-snap-type-proximity.html": [ [ "/css/css-scroll-snap/scroll-snap-type-proximity.html", @@ -528142,12 +528148,16 @@ "d6432e3ad547c16ead21070cc04278b13ec49b58", "support" ], + "css/css-scroll-snap/overflowing-snap-areas.html": [ + "d290c9e941ee860e1d7f16e40c60c9f9696788c8", + "testharness" + ], "css/css-scroll-snap/scroll-snap-type-proximity.html": [ "75bfc0b6c7686afbbf431e653ab674496ad3fe46", "testharness" ], "css/css-scroll-snap/scrollTo-scrollBy-snaps.html": [ - "6e921f3b1c54df09d594d5e450674618eee42143", + "1cd26585c857250870a3cafdfa077110b7403e5c", "testharness" ], "css/css-scroll-snap/snap-at-user-scroll-end-manual.html": [ diff --git a/testing/web-platform/tests/css/css-scroll-snap/overflowing-snap-areas.html b/testing/web-platform/tests/css/css-scroll-snap/overflowing-snap-areas.html new file mode 100644 index 000000000000..6d3c1865fe7b --- /dev/null +++ b/testing/web-platform/tests/css/css-scroll-snap/overflowing-snap-areas.html @@ -0,0 +1,153 @@ + + + + + +
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+ + \ No newline at end of file diff --git a/testing/web-platform/tests/css/css-scroll-snap/scrollTo-scrollBy-snaps.html b/testing/web-platform/tests/css/css-scroll-snap/scrollTo-scrollBy-snaps.html index 766cf57a047f..58807a6836f7 100644 --- a/testing/web-platform/tests/css/css-scroll-snap/scrollTo-scrollBy-snaps.html +++ b/testing/web-platform/tests/css/css-scroll-snap/scrollTo-scrollBy-snaps.html @@ -8,41 +8,55 @@ body { overflow: scroll; scroll-snap-type: both mandatory; } +div { + position: absolute; +} .scroller { overflow: scroll; scroll-snap-type: both mandatory; } -#div-scroller { +#inner-scroller { + top: 3000px; width: 800px; height: 800px; } -.content { +.space { + left: 0px; + top: 0px; width: 2100px; height: 2100px; } .target { - width: 1000px; - height: 1000px; + width: 600px; + height: 600px; scroll-snap-align: start; - float: left; +} + +.left { + left: 0px; +} +.right { + left: 1000px; +} +.top { + top: 0px; +} +.bottom { + top: 1000px; } - -
-
-
-
-
-
- -
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
@@ -55,7 +69,7 @@ function format_dict(dict) { return `{${props.join(', ')}}`; } -var divScroller = document.getElementById("div-scroller"); +var divScroller = document.getElementById("inner-scroller"); var viewport = document.scrollingElement; [ [{left: 800}, 1000, 0], @@ -140,6 +154,4 @@ var viewport = document.scrollingElement; assert_equals(window.scrollY, expectedY); }, `scrollBy(${format_dict(input)}) on window lands on (${expectedX}, ${expectedY})`); }); - -document.body.removeChild(document.getElementById("content")); \ No newline at end of file