- From: Darryl Pogue via GitHub <sysbot+gh@w3.org>
- Date: Tue, 03 Dec 2024 21:04:05 +0000
- To: public-css-archive@w3.org
dpogue has just created a new issue for https://github.com/w3c/csswg-drafts: == [cssom-view] Wanted: getBoundingClientRect() with logical property values == Currently `getBoundingClientRect()` returns a `DOMRect` with `top`, `right`, `bottom`, and `left` properties corresponding to the position and size of the element. This is great, but if you are trying to use it for calculating layout positions in an RTL context, you have to do things like `rect.right - window.innerWidth` to get the offset from the inline starting point. Given that many CSS properties now support logical variants, it would be nice to have a function that returned the bounding box of an element using logical property names like `blockStart`, `blockEnd`, `inlineStart`, and `inlineEnd`. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11319 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 3 December 2024 21:04:06 UTC