- From: Lea Verou via GitHub <sysbot+gh@w3.org>
- Date: Wed, 29 Nov 2017 03:25:45 +0000
- To: public-css-archive@w3.org
`:has()` is not in the fast selector profile and thus, even when supported by browsers, will not be available in regular CSS, just JS. Browsers so far have not found a way to implement this efficiently enough for normal CSS, which is why we don't have such a feature yet, despite it being requested for almost 20 years. We should really have an FAQ for this… I do agree that duplicating syntax is not great though. If it were up to me, I'd just special case `:has(:focus)` and `:has(:target)` to be in the fast selector profile. But many (most?) others disagree with partially supporting syntax in certain contexts and think there should be a different syntax for that. -- GitHub Notification of comment by LeaVerou Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/457#issuecomment-347741482 using your GitHub account
Received on Wednesday, 29 November 2017 03:26:20 UTC