commit 72aff07a8e295400139806c2d21b167132644cb4
parent 56326e39a191e0d6b1a73d425dd5e04ddc2cded0
Author: Daniel Holbert <dholbert@cs.stanford.edu>
Date: Fri, 19 Dec 2025 09:17:06 +0000
Bug 2006519 [wpt PR 56798] - Increase large size in anchor-scroll-position-try-004.html to more reliably overflow., a=testonly
Automatic update from web-platform-tests
Increase large size in anchor-scroll-position-try-004.html to more reliably overflow. (#56798)
* Increase large size in anchor-scroll-position-try-004.html to more reliably overflow.
Before this change, the test implicitly assumes that the viewport is smaller
than 1100px wide. If you run the test in a browser with a viewport wider than
1100px, the final subtest will fail.
This patch increases the "big sizes" in the test to use viewport-unit lengths
that will reliably trigger overflow (as the tests intend to) regardless of
browser window size.
Fixes https://github.com/web-platform-tests/interop/issues/1236
--
wpt-commits: 5cd18d7d456f40079bc0edfd588307aa42e8926d
wpt-pr: 56798
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testing/web-platform/tests/css/css-anchor-position/anchor-scroll-position-try-004.html b/testing/web-platform/tests/css/css-anchor-position/anchor-scroll-position-try-004.html
@@ -24,7 +24,7 @@ body {
anchor-name: --a;
width: 100px;
height: 100px;
- margin-left: 1000px;
+ margin-left: 120lvw;
background: orange;
}
@@ -58,7 +58,7 @@ body {
<div id="vrl-scroller">
<div id="anchor"></div>
</div>
-<div style="height: 1000px"></div>
+<div style="height: 120lvh"></div>
<div id="anchored"></div>
<script>