Skip to content

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

Merged
servo-wpt-sync merged 1 commit into
web-platform-tests:masterfrom
servo:servo_export_40098
Apr 3, 2026
Merged

paint: Use viewport meta tag's min-scale and max-scale to clamp pinch zoom#58805
servo-wpt-sync merged 1 commit into
web-platform-tests:masterfrom
servo:servo_export_40098

Conversation

@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

@servo-wpt-sync servo-wpt-sync commented Mar 27, 2026

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
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: #40390 (Observed Inconsistent behavior with Chrome Android)

Reviewed in servo/servo#40098

Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

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 Servo project.

@servo-wpt-sync servo-wpt-sync force-pushed the servo_export_40098 branch 8 times, most recently from be14f77 to 2414ad4 Compare April 2, 2026 07:27
@servo-wpt-sync servo-wpt-sync changed the title paint: Clamp Pinch Zoom factor within <meta> viewport's scale paint: Use viewport meta tag's min-scale and max-scale to clamp pinch zoom Apr 2, 2026
@servo-wpt-sync servo-wpt-sync force-pushed the servo_export_40098 branch 3 times, most recently from 99eb10c to 720cf08 Compare April 3, 2026 09:13
@servo-wpt-sync servo-wpt-sync merged commit 18660ab into web-platform-tests:master Apr 3, 2026
24 of 25 checks passed
@servo-wpt-sync servo-wpt-sync deleted the servo_export_40098 branch April 3, 2026 13:50
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