Repository navigation
[Gecko Bug 1929309] Reduce the horizontal sizes in WPT unreachable-snap-positions-003.html to avoid spurious failures in WPT harness with 600px-wide viewport. - #48994
Merged
Conversation
…l to avoid spurious failures in WPT harness with 600px-wide viewport. This patch just halves the widths and the `scrollLeft` values in this test. While we're at it, this patch also changes to use `width` rather than `max-width` to size the scroller element, so that that element's sizing isn't at-the-mercy of the viewport size. This patch also removes a 0.5x scale in the meta-viewport tag, which was essentially a paper-over to reduce the widths of the content here. That scale factor is no longer needed now that we've directly made the content smaller. The test still passes in all browsers (and now reliably passes in windows at or smaller-than 600px wide). The test also still fails in builds from before the associated fix landed (from bug 1905247), so it still works as a regression test for that bug. Differential Revision: https://phabricator.services.mozilla.com/D227994 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1929309 gecko-commit: 428c0fbb4a8c5f11782ad521d4fcec32b3870afd gecko-reviewers: hiro
wpt-pr-bot
approved these changes
Nov 6, 2024
wpt-pr-bot
left a comment
Collaborator
There was a problem hiding this comment.
The review process for this patch is being conducted in the Firefox project.
pull Bot
pushed a commit
to AmirulAndalib/servo
that referenced
this pull request
Sep 7, 2026
…servo#47852) This should fix the WebDriver Out of Bound Error for Safari ([run](https://staging.wpt.fyi/results/pointerevents?diff&filter=ADC&run_id=5422356349583360&run_id=4684953817186304)), and prevent it from happening for Servo after servo#47821. Right now Servo only FAIL but not ERROR as it ignores `touch-action: none` under certain circumstances (servo#47737) and scrolls the viewport. Firefox/Chromium passed without the change as they don't always use 800x600 except for reftests. The approach we take is similar to web-platform-tests/wpt#48994. The reason I open this in Servo is that it impacts servo#47821. Testing: Screenshot verified with Firefox/Edge. | Before | After | | -------- | -------- | | <img width="1249" height="943" alt="image" src="https://github.com/user-attachments/assets/6cd472a4-236e-40ea-961e-1bf298eec1dc" /> | <img width="1244" height="938" alt="image" src="https://github.com/user-attachments/assets/60687f38-2c42-4a31-b60c-0c442b6a0f3e" /> | Fixes: web-platform-tests/wpt#62481 Signed-off-by: Euclid Ye <[email protected]>
RichardTjokroutomo
pushed a commit
to RichardTjokroutomo/servo
that referenced
this pull request
Oct 6, 2026
…servo#47852) This should fix the WebDriver Out of Bound Error for Safari ([run](https://staging.wpt.fyi/results/pointerevents?diff&filter=ADC&run_id=5422356349583360&run_id=4684953817186304)), and prevent it from happening for Servo after servo#47821. Right now Servo only FAIL but not ERROR as it ignores `touch-action: none` under certain circumstances (servo#47737) and scrolls the viewport. Firefox/Chromium passed without the change as they don't always use 800x600 except for reftests. The approach we take is similar to web-platform-tests/wpt#48994. The reason I open this in Servo is that it impacts servo#47821. Testing: Screenshot verified with Firefox/Edge. | Before | After | | -------- | -------- | | <img width="1249" height="943" alt="image" src="https://github.com/user-attachments/assets/6cd472a4-236e-40ea-961e-1bf298eec1dc" /> | <img width="1244" height="938" alt="image" src="https://github.com/user-attachments/assets/60687f38-2c42-4a31-b60c-0c442b6a0f3e" /> | Fixes: web-platform-tests/wpt#62481 Signed-off-by: Euclid Ye <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch just halves the widths and the
scrollLeftvalues in this test.While we're at it, this patch also changes to use
widthrather thanmax-widthto size the scroller element, so that that element's sizing isn'tat-the-mercy of the viewport size. This patch also removes a 0.5x scale in the
meta-viewport tag, which was essentially a paper-over to reduce the widths of
the content here. That scale factor is no longer needed now that we've directly
made the content smaller.
The test still passes in all browsers (and now reliably passes in windows
at or smaller-than 600px wide).
The test also still fails in builds from before the associated fix landed (from
bug 1905247), so it still works as a regression test for that bug.
Differential Revision: https://phabricator.services.mozilla.com/D227994
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1929309
gecko-commit: 428c0fbb4a8c5f11782ad521d4fcec32b3870afd
gecko-reviewers: hiro