- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 23 Nov 2022 17:56:53 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `Allow more pseudo-classes after pseudo-elements`, and agreed to the following: * `RESOLVED: allow the "logical combination pseudo-classes" after pseudo-elements, with their contents having the same restrictions as the pseudo-elements themselves otherwise would have` * `RESOLVED: Allow the logical-combination pseudo-classes generically, anywhere their contents are allowed.` * `RESOLVED: Allow pseudo-elements to define additional pseudo-classes they allow to be placed after them.` <details><summary>The full IRC log of that discussion</summary> <TabAtkins> Topic: Allow more pseudo-classes after pseudo-elements<br> <fantasai> TabAtkins: Currently, pseudo-elements allow a few pseudos to be put after them, :hover etc.<br> <fantasai> TabAtkins: question is whether to allow combinatoric ones (:is()/:not()/:where()) to be applied as well<br> <JakeA> q+<br> <fantasai> TabAtkins: Further, some pseudo-elements represent specific elements elsewhere in the DOM<br> <fantasai> TabAtkins: wondering if specific pseudo-elements can opt into allowing additional pseudo-elements<br> <fantasai> TabAtkins: but that's a different issue<br> <fantasai> TabAtkins: but first issue, allowing combinatoric ones<br> <fantasai> TabAtkins: Contents are still restricted to the user-action pseudos<br> <fantasai> JakeA: we're interested in this for view-transitions<br> <Rossen_> ack JakeA<br> <fantasai> JakeA: want to know if old or new view is only-child<br> <fantasai> JakeA: so allowing that would be useful<br> <TabAtkins> fantasai: two issues, one is we have a set of pseudos that are already allowed, and do we allow them to be put in :is()/etc<br> <TabAtkins> fantasai: second is allowing other pseudos on case-by-case basis, we should talk about that separately<br> <TabAtkins> fantasai: for is/not/where, it's about whether we can express the combinations of the user action pseudos<br> <fantasai> https://github.com/w3c/csswg-drafts/pull/8041/files<br> <tantek> could see this being useful for webdevs<br> <fantasai> oriol: these use forgiving parsing, would invalid pseudos be valid within them?<br> <fantasai> TabAtkins: yes<br> <fantasai> TabAtkins: this would allow more safely adding more pseudo-classes to a selector in the future<br> <fantasai> Rossen_: any other opinions?<br> <fantasai> TabAtkins: proposed, allow the "logical combination pseudo-classes" after pseudo-elements, with their contents having the same restrictions as the pseudo-elements themselves otherwise would have<br> <fantasai> RESOLVED: allow the "logical combination pseudo-classes" after pseudo-elements, with their contents having the same restrictions as the pseudo-elements themselves otherwise would have<br> <TabAtkins> fantasai: and more generically i want to resolve that the logical-combo pseudos can be used *anywhere* their contents are allowed<br> <TabAtkins> TabAtkins: I agree with being more generic if we can get away with it<br> <fantasai> fantasai: wanted to ask if anyone saw a problem with that<br> <tantek> no objection<br> <TabAtkins> (Don't think there's much issue beyond just implementing it.)<br> <TabAtkins> RESOLVED: Allow the logical-combination pseudo-classes generically, anywhere their contents are allowed.<br> <fremy> q+<br> <fantasai> TabAtkins: Second part of issue, should we allow additional pseudo-classes other than user-action pseudo-classes to be put after speudo-elements?<br> <fantasai> s/speu/pseu/<br> <fantasai> fremy: On previous resolution, does that mean you can change styles on ::before:hover ?<br> <fantasai> TabAtkins: yes<br> <fantasai> fremy: what if you create a loop with ::first-line:hover?<br> <fantasai> TabAtkins: hover loop, we already have that problem<br> <fantasai> Consider p:hover ::first-line<br> <fantasai> fremy: ok<br> <JakeA> I'm still +1 this<br> <bradk> +1<br> <fantasai> TabAtkins: back to issue, should we allow lifting restrictions on pseudo-elements followed by pseudo-classes?<br> <argyle> +1<br> <miriam> +1<br> <JakeA> q+<br> <Rossen_> ack fremy<br> <TabAtkins> fantasai: Okay as long as we do it as an allowlist, rather than blanket allowing<br> <Rossen_> ack JakeA<br> <TabAtkins> JakeA: would folks be happy with us using :only-child for view transitions?<br> <fantasai> TabAtkins: As long as it matches intent<br> <fantasai> TabAtkins: defined as up to two children, and this one says if you have only one<br> <fantasai> JakeA: But usually it doesn't count pseudos...<br> <fantasai> JakeA: but I guess if we're appying it to a pseudo<br> <bradk> :only-pseudo-element?<br> <fantasai> TabAtkins: pseudo-elements live in the tree<br> <TabAtkins> RESOLVED: Allow pseudo-elements to define additional pseudo-classes they allow to be placed after them.<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7085#issuecomment-1325456381 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 23 November 2022 17:56:55 UTC