Skip to content

Conversation

@dholbert
Copy link
Contributor

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 be 4000px instead of 1000px. That makes them more-reliably trigger overflow (as they intend to) in any reasonably-sized browser window.

Fixes web-platform-tests/interop#1236

…liably 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 be 4000px instead of
1000px. That makes them more-reliably trigger overflow (as they intend to)
in any reasonably-sized browser window.

Fixes web-platform-tests/interop#1236
@wpt-pr-bot
Copy link
Collaborator

There are no reviewers for this pull request. Please reach out on the chat room to get help with this. Thank you!

@gsnedders
Copy link
Member

web-platform-tests/rfcs#188 is kinda related, though that's about minimum size, not maximum size.

Copy link
Member

@gsnedders gsnedders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine to me.

However:

@dholbert
Copy link
Contributor Author

dholbert commented Dec 17, 2025

Here are wpt.fyi results, FWIW.

First patch (using 4000px), green in Chrome/Firefox/Safari:
https://wpt.fyi/results/css/css-anchor-position/anchor-scroll-position-try-004.html?sha=10c55cf29a&label=pr_head&max-count=1

After addressing review feedback & switching to 120 lvw / lvh, green in Chrome/Firefox/Safari:
https://wpt.fyi/results/css/css-anchor-position/anchor-scroll-position-try-004.html?sha=42970e6586&label=pr_head&max-count=1

@dholbert dholbert merged commit 5cd18d7 into web-platform-tests:master Dec 17, 2025
25 checks passed
@dholbert dholbert deleted the fix-1236 branch December 17, 2025 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix anchor-scroll-position-try-004.html to increase its 1000px sizes to be something larger

3 participants