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

Sure! Something like `window.viewport.sizes` which has `large` and `small` objects. Their type would be a slimmed down version of `DOMRectReadOnly` (without the `x` and `y`)

One thing that I’m now thinking about is the interaction with https://drafts.csswg.org/css-viewport/#interactive-widget-section because when using `resizes-content`, the viewport’s size – represented by the blue box below – changes when the OSK gets shown.

![image](https://github.com/w3c/csswg-drafts/assets/213073/05353491-0e7f-4faa-955c-3d910b7c4b49)

Would that need an event? Or can we assume authors to read it again when a `resize` event triggers? I think that latter is OK.


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


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

Received on Monday, 17 June 2024 13:31:33 UTC