Re: [csswg-drafts] [cssom-1][css-pseudo-4] getComputedStyle and pseudo-elements with pseudo-classes or sub-pseudo-elements (#10297)

The CSS Working Group just discussed `[cssom-1][css-pseudo-4] getComputedStyle and pseudo-elements with pseudo-classes or sub-pseudo-elements`, and agreed to the following:

* `RESOLVED: add bramus as co-editor to CSS Scroll Animations`

<details><summary>The full IRC log of that discussion</summary>
&lt;kbabbitt> schenney: observation is that with gCS you can gCS an element and an optional pseudo class string<br>
&lt;kbabbitt> ... currently speced as being a single pseudo class string<br>
&lt;kbabbitt> ... given other issues we just talked about, potential of having first-line hover etc.<br>
&lt;kbabbitt> ... no way to gCS on multiple chained pseudos<br>
&lt;emilio> q+<br>
&lt;kbabbitt> ... would be a change to behavior of gCS to enable<br>
&lt;oriol> q+<br>
&lt;kbabbitt> ... proposal I agree with is to change 2nd argument from single pseudo selector string to become pseudo element compound selector<br>
&lt;lea> q?<br>
&lt;kbabbitt> ... propose we extend gCS to instead of single string with one pseudo, list of pseudos<br>
&lt;astearns> ack dbaron<br>
&lt;kbabbitt> dbaron: both pseudo element and pseudo class in there<br>
&lt;kbabbitt> ... need to be careful to distinguish<br>
&lt;kbabbitt> ... right now gCS argument is just pseudo element<br>
&lt;kbabbitt> ... gives style given what pseudo class is applied<br>
&lt;kbabbitt> ... providing a way to change that is a bigger discussion<br>
&lt;kbabbitt> ... second piece: I think we discussed this for some other use case<br>
&lt;bramus> https://github.com/w3c/csswg-drafts/issues/4456 was the issue<br>
&lt;kbabbitt> ... I think we have a resolution to allow multiple pseudo elements in that string<br>
&lt;TabAtkins> Yeah, `&lt;pseudo-compound-selector>+` would be the grammar term to use<br>
&lt;kbabbitt> schenney: I did not follow up on that, I think we should table this<br>
&lt;lea> q+<br>
&lt;kbabbitt> s/that/issue 4456/<br>
&lt;oriol> q-<br>
&lt;kbabbitt> ... we should look at this more before we bring it back<br>
&lt;kbabbitt> ... oh wait, I said we should use the resolution for 4456<br>
&lt;astearns> ack emilio<br>
&lt;kbabbitt> emilio: what dbaron said<br>
&lt;kbabbitt> ... I don't think we should accept pseudo classes<br>
&lt;kbabbitt> ... for some specific cases it might be useful<br>
&lt;kbabbitt> .. doesn't match what happens for elements<br>
&lt;bramus> q+<br>
&lt;kbabbitt> ... element would give style with pseudoclasses applied at the time<br>
&lt;kbabbitt> ... could be use cases to request with a given pseudo class<br>
&lt;kbabbitt> ... but I don't think we want to expand that only for pseudo elements<br>
&lt;kbabbitt> astearns: if we use 4456 resolution it's only talking about pseudo classes<br>
&lt;astearns> ack lea<br>
&lt;emilio> s/classes/elements<br>
&lt;kbabbitt> emilio: think we should not mess with pseudo classes here<br>
&lt;TabAtkins> then we need to make the grammar a little more restrictive, that's fine<br>
&lt;dbaron> s/astearns/emilio/<br>
&lt;kbabbitt> lea: basically allowing chained pseudoe elements seems reasonable which not<br>
&lt;kbabbitt> s/which/why/<br>
&lt;kbabbitt> ... hoping we can limit number of times this is needed in the language in general<br>
&lt;kbabbitt> ... agree with dbaron about pseudo classes<br>
&lt;kbabbitt> ... time to turn that argument into  dicutionary perhaps<br>
&lt;kbabbitt> ... much larger scoped change than what's discussed here<br>
&lt;kbabbitt> ... seems like a useful addition that should be discussed separately<br>
&lt;astearns> ack bramus<br>
&lt;emilio> ack bramus<br>
&lt;fantasai> +!<br>
&lt;fantasai> +1<br>
&lt;kbabbitt> bramus: hijacking thread ... pseudo elements are not first class citizens in DOm<br>
&lt;kbabbitt> ... filed aqn issue for that<br>
&lt;kbabbitt> ...11559\<br>
&lt;kbabbitt> ...something to think about<br>
&lt;kbabbitt> astearns: for this issue, we can just apply resolution from 4456 and reuse mechanism from there?<br>
&lt;kbabbitt> schenney: I think it's close no change needed<br>
&lt;emilio> https://github.com/w3c/csswg-drafts/issues/11559 fwiw<br>
&lt;kbabbitt> astearns: might be good to have example in spec<br>
&lt;kbabbitt> schenney: will add example to spec so we can explain<br>
&lt;dbaron> I think the key distinction between pseudo-elements and pseudo-classes here is that pseudo-elements are about finding a different object, whereas providing a pseudo-class you're asking the entirely different question of "what would the style for *this* object be if we changed pseudo-class state in this way")<br>
&lt;kbabbitt> fantasai: propose adding bramus as co-editor to CSS Scroll Animations<br>
&lt;kbabbitt> ... he has contributed very heavily<br>
&lt;kbabbitt> ... very much on design side, coming at it from a different perspective by providing examples<br>
&lt;kbabbitt> ... he put in as much effort in design as editors have<br>
&lt;fantasai> s/examples/demos and use cases/<br>
&lt;kbabbitt> bramus: I would be happy to, thank you for acknowledging<br>
&lt;kbabbitt> RESOLVED: add bramus as co-editor to CSS Scroll Animations<br>
</details>


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


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

Received on Wednesday, 29 January 2025 22:37:02 UTC