Skip to content

[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
moz-wptsync-bot merged 1 commit into
masterfrom
gecko/1929309
Nov 7, 2024

Conversation

@moz-wptsync-bot

Copy link
Copy Markdown
Collaborator

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

…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 wpt-pr-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Firefox project.

@moz-wptsync-bot
moz-wptsync-bot merged commit ad13530 into master Nov 7, 2024
@moz-wptsync-bot
moz-wptsync-bot deleted the gecko/1929309 branch November 7, 2024 08:41
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]>
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.

3 participants