- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 01 Jun 2022 16:14:42 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[selectors-4] Consider disallowing logical combination pseudo-classes inside :has()`, and agreed to the following: * `RESOLVED: Disallow nesting :has() inside :has()` <details><summary>The full IRC log of that discussion</summary> <fantasai> Topic: [selectors-4] Consider disallowing logical combination pseudo-classes inside :has()<br> <fantasai> github: https://github.com/w3c/csswg-drafts/issues/6952https://github.com/w3c/csswg-drafts/issues/6952<br> <fantasai> futhark: I think there is agreement to allow combinations like :is() and :where()<br> <fantasai> futhark: But implementors want to disallow :has() inside :has()<br> <fantasai> bkardell_: I think that's my impression as well. I think Safari implements this way as well<br> <fantasai> futhark: Implement in chrome and safari, but buggy<br> <fantasai> futhark: Don't think need to change the spec at this point<br> <fantasai> futhark: or to add any limitations, other than :has()<br> <fantasai> TabAtkins: I support this<br> <TabAtkins> github:<br> <TabAtkins> github: https://github.com/w3c/csswg-drafts/issues/6952<br> <fantasai> fantasai: proposed then that :has() cannot be nested inside :has()<br> <jensimmons> I've already found a useful usecase for figure:not(:has(:not(img))) { ... }<br> <fantasai> oriol: I think other combinations seem useful, but :has() inside :has() doesn't seem that useful<br> <fantasai> bkardell_: Originally wanted to disallow all of them, but based on feedback went back and made them work<br> <fantasai> bkardell_: said some perf implications, but seem livable-with<br> <fantasai> bkardell_: so let's just prohibit :has() inside :has()<br> <fantasai> astearns: Other opinions?<br> <fantasai> RESOLVED: Disallow nesting :has() inside :has()<br> <TabAtkins> I mean, I'm sure there are use-cases for nested :has(), but they're not as obvious and clearly worth the complexity cost, so I'm happy with this.<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6952#issuecomment-1143812466 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 1 June 2022 16:14:44 UTC