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

The CSS Working Group just discussed `[css-pseudo] Geometry methods for CSSPseudoElement`.

<details><summary>The full IRC log of that discussion</summary>
&lt;ydaniv> sakhapov: this proposal is about supporting something like gBR for this that it allows some useful use-cases<br>
&lt;ydaniv> astearns: only for tree-abiding pseudo elements?<br>
&lt;ydaniv> sakhapov: yes<br>
&lt;ydaniv> ... there's a discussion about the rest about for future<br>
&lt;astearns> ack fantasai<br>
&lt;ydaniv> fantasai: when the style position is outside we don't know some stuff, ...<br>
&lt;fantasai> We don't know the bounds of ::marker when it is list-style-position: outside, because its layout is not yet well-defined. THat's why you can't have backgrounds on it.<br>
&lt;ydaniv> astearns: the marker does have this CSSPseuodoElement available, but in this case we want to be able to show the rect and return null?<br>
&lt;ydaniv> fantasai:  we should make it only applyable to stylable pseudo-elements<br>
&lt;ydaniv> sakhapov: yes we could some with some hierarchy of elements that support it<br>
&lt;ydaniv> iank_: does CSSPseudoElements work like :first-line? or not?<br>
&lt;ydaniv> sakhapov: currently not, is it tree-abiding?<br>
&lt;ydaniv> ... last week we agreed to support tree-abiding<br>
&lt;ydaniv> fantasai: do we want to change that resolution and make it full-stylable? or only tree-abiding?<br>
&lt;ydaniv> sakhapov: markers should probably be preserved, you can click your marker to know if it's been clicked<br>
&lt;ydaniv> fantasai: but if we don't know where the boundry of the marker is how do we know that?<br>
&lt;ydaniv> sakhapov: good question<br>
&lt;ydaniv> fantasai: the layout of marker has less compat issues, so maybe safe<br>
&lt;fantasai> s/layout/hit testing/<br>
&lt;ydaniv> astearns: my question is where we make the distinction between these elements? do we have separate interfaces for each category? or do we have a single CSSPseudoElements which does different thing for each element<br>
&lt;ydaniv> ... naively a separate interface is more ergonomic<br>
&lt;flackr> +1 that's my intuition as well<br>
&lt;astearns> s/a sepatate/a single/<br>
&lt;ydaniv> fantasai: some not-fully-stylable elements may be in the future,<br>
&lt;kbabbitt> think I agree with one interface across all pseudos as well<br>
&lt;ydaniv> ... it would be good not to use JS for those cases<br>
&lt;ydaniv> ... is there a way for gBCR to know someting like that?<br>
&lt;kbabbitt> q+<br>
&lt;ydaniv> sakhapov: currently it retun a list, we could return an empty list?<br>
&lt;astearns> ack kbabbitt<br>
&lt;ydaniv> kbabbitt: what does gBCR returns for [missed]?<br>
&lt;kbabbitt> s/[missed]/an element that's display:none/<br>
&lt;kbabbitt> (looking for a precedent)<br>
&lt;smfr> looks like it returns an empty rectangle<br>
&lt;ydaniv> flackr: looks like CH returns 0x0<br>
&lt;ydaniv> ... not ideal, but it's a precedent<br>
&lt;ydaniv> sakhapov: we could first discuss some tree hierarchy before?<br>
&lt;flackr> q+<br>
&lt;astearns> ack flackr<br>
&lt;ydaniv> astearns: we could resolve we have a single interface and resolve to different types in different cases, so that geometry would return something for fully-stylable and something else for not<br>
&lt;ydaniv> flackr: would be nice have a single interface, and when run into some property that doesn't fit we could specialize that case<br>
&lt;ydaniv> astearns: shall we leave this here with intent to have a single interface? and list out the rest of the geometry method for pseudo elements?<br>
&lt;ydaniv> sakhapov: sounds good<br>
&lt;ydaniv> astearns: seems more clear to me to have a single interface that may work differently depending on the element<br>
&lt;ydaniv> ... better than a hierarchy of interfaces of elements with longer and longer names that try to disambiguate that stuff<br>
&lt;weinig> q+<br>
&lt;ydaniv> astearns: agree, so let's say there's a common interface<br>
&lt;ydaniv> s/astearns/sakhapov<br>
&lt;astearns> ack weinig<br>
&lt;ydaniv> weinig: wanna challange the idea of hierarchy as bad idea<br>
&lt;ydaniv> ... when things mistirously work or not it's challanging<br>
&lt;ydaniv> ... and if you want to detect what's not working, it's challange, like when something is falsy<br>
&lt;ydaniv> astearns: so let's continue on whether we want a single interface or hierarchy<br>
</details>


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


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

Received on Wednesday, 6 May 2026 16:49:40 UTC