Re: [csswg-drafts] [css-pseudo] Geometry methods for CSSPseudoElement (#12373)

I’d definitely be in favor of this, exactly for the use case you mention. This would also be useful for other (tree-abiding) pseudos such as the carousel ones.

In https://github.com/w3c/csswg-drafts/issues/11559 I listed the following:

>  - Add (only some?) of [these extensions to `Element` from cssom-view](https://drafts.csswg.org/cssom-view/#extension-to-the-element-interface) also to `CSSPseudoElement`
>  - If not all, then at least these would be needed:
>    ```js
>    partial interface CSSPseudoElement {
>      DOMRectList getClientRects();
>      [NewObject] DOMRect getBoundingClientRect();
>    }
>    ```
>  - For reference: The `CSSPseudoElement` is [already defined to include the `GeometryUtils` mixin](https://drafts.csswg.org/cssom-view/#the-geometryutils-interface).


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


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

Received on Friday, 20 June 2025 12:15:20 UTC