- From: Yehonatan Daniv via GitHub <sysbot+gh@w3.org>
- Date: Sat, 22 Jun 2024 14:29:54 +0000
- To: public-css-archive@w3.org
> 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) Yeah, I'm fine with that. Also should link @emilio's comment on https://github.com/w3c/csswg-drafts/issues/5260#issuecomment-2160729990. > 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. I think using existing events for `resize` on `window` and `visualViewport` should be fine. ## Proposing Expose a new endpoint for accessing the layout viewport, either `window.viewport` or `window.layoutViewport` - TBB. This endpoint should expose `large`/`small`/`dynamic` as accessors for subsets of `DOMRectReadOnly` with `width`/`height`/`block`/`iniline` properties as doubles. -- GitHub Notification of comment by ydaniv Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8709#issuecomment-2184054173 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 22 June 2024 14:29:55 UTC