Closed Bug 2029361 Opened 3 months ago Closed 2 months ago

[wpt-sync] Sync PR 58805 - paint: Use viewport meta tag's `min-scale` and `max-scale` to clamp pinch zoom

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 58805 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/58805
Details from upstream follow.

Shubham Gupta <shubham.gupta@chromium.org> wrote:

paint: Use viewport meta tag's min-scale and max-scale to clamp pinch zoom

Note: Targeting Mobile devices only.

Clamp Pinch Zoom factor using viewport' scale range parsed from <meta> tag.

Behavior in Servo with this PR

Zoom Type Device Type Meta Supported Range
Pinch Zoom Mobile Yes Parsed from <meta>
Pinch Zoom Desktop No Default

Observed behavior in Chrome:

Device Type Viewport Meta Support (pref) Pinch Zoom (No Reflow) Zoom (using keyboard)
Mobile (Android) Yes Clamped within Viewport Meta Range Applied to Pinch Zoom*
Desktop (Touch Screen) No Clamped within Default Range Same as Zoom (using menu)

References from Chromium:

Testing: New WPT Test Added: wpt/visual-viewport/viewport-scale-clamped.html

Fixes: #<!-- nolink -->40390 (Observed Inconsistent behavior with Chrome Android)

Reviewed in servo/servo#40098

Component: web-platform-tests → Layout
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 20 tests

Status Summary

Firefox

OK : 1[GitHub] 18[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
PASS: 1[GitHub] 29[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 30[Gecko-windows11-32-24h2-debug] 31[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
FAIL: 3[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] 4[Gecko-windows11-32-24h2-debug] 5[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]

Chrome

OK : 1
FAIL: 1

Safari

OK : 1
PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/125d63e9a01e https://hg.mozilla.org/integration/autoland/rev/daa5601d1212 [wpt PR 58805] - paint: Use viewport meta tag's `min-scale` and `max-scale` to clamp pinch zoom, a=testonly
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
You need to log in before you can comment on or make changes to this bug.