Re: [csswg-drafts] [cssom-view] Consider adding a programmatic way of resetting the visual viewport scale. (#9787)

This would introduce the capability of programmatically (re)set the scale on desktop too (which supports pinch zooming, but doesn't support `<meta name=viewport>`). That seems reasonable to me but I thought I should point that out.

If we just provide an API to reset it, we don't need to think too hard, but if we just set the scale to be writable then there are some other questions about whether we should limit the API range to some sane values or what not. Browsers seem to have some maximum range they allow zooming to, not sure how interoperable that is. Also in desktop you can't zoom out.

That makes me think that an explicit "reset the scale" API might be better, but I don't have a super-strong opinion.

-- 
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9787#issuecomment-1888187743 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 12 January 2024 00:20:45 UTC