Re: [csswg-drafts] [cssom] getComputedStyle for ::before::marker or ::after::marker (#4456)

The CSS Working Group just discussed `[cssom] getComputedStyle for  ::before::marker or ::after::marker`, and agreed to the following:

* `RESOLVED: The pseudoElement argument to getComputedStyle takes any pseudo-element selector, and selects the first matching pseudo-element like querySelector()`

<details><summary>The full IRC log of that discussion</summary>
&lt;chrishtr> oriol: this is about nested markers. The spec already allows these syntaxes. If authors are able to style them then they should be able to query the style of them.<br>
&lt;chrishtr> oriol: I proposed generalizing the second argument to getComputedStyle to put multiple pseudo element selectors in this<br>
&lt;chrishtr> oriol: we already resolved this in animations for the ? function that we already resolved, in issue 7469<br>
&lt;chrishtr> oriol: there we resolved that multiple pseudo-elements could be provided. Propose to repeat that pattern here.<br>
&lt;emilio> +1<br>
&lt;kizu> +1<br>
&lt;schenney> +1<br>
&lt;chrishtr> emilio: have you thought through all the corner cases?<br>
&lt;schenney> Also relevant: https://github.com/w3c/csswg-drafts/issues/10297<br>
&lt;chrishtr> florian: this resolution doesn't add any new cases, it's just about querying existing cases<br>
&lt;chrishtr> oriol: for the other web animations issue, if you end up matching multiple things then you take the first one<br>
&lt;chrishtr> oriol: not sure if this was exactly what you were saying about view transitions<br>
&lt;florian> makes sense<br>
&lt;chrishtr> emilio: this is what my memory was, so sounds good<br>
&lt;dbaron> +1 (to the initial proposal here)<br>
&lt;chrishtr> PROPOSED: allow multiple pseudo-elements in the same way as in the web animations spec<br>
&lt;Rossen1> The pseudoElement argument to animate() takes any pseudo-element selector, and selects the first matching pseudo-element like querySelector()<br>
&lt;chrishtr> PROPOSED: The pseudoElement argument to getComputedStyle takes any pseudo-element selector, and selects the first matching pseudo-element like querySelector()<br>
&lt;chrishtr> RESOLVED: The pseudoElement argument to getComputedStyle takes any pseudo-element selector, and selects the first matching pseudo-element like querySelector()<br>
</details>


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


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

Received on Wednesday, 27 November 2024 17:39:21 UTC