Re: [csswg-drafts] [cssom-view] Expose small/large viewport dimensions on VisualViewport (#8709)

Imo there should be something like `window.viewport` – mimicking `window.visualViewport` but then exposing values of the (layout) viewport. The large and small dimensions could also have a place on there. 

Having these large/small viewport values available would help authors to prepare a layout **before** the virtual keyboard is actually shown. I know this has been a request from the Ionic team, amongst others _(the real problem there being that the Virtual Keyboard API does not trigger a `beforeGeometryChange` event)_.

On a side note: it could become confusing when there is more than 1 interactive widget: for the Small Viewport, do you consider just one or all interactive widgets expanded? Right now the virtual keyboard is the only interactive widget so it is not much of a problem, but I can imagine some extra top banner injected by the user agent could be a second one over time.



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


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

Received on Thursday, 20 April 2023 11:59:51 UTC