- From: L. David Baron via GitHub <sysbot+gh@w3.org>
- Date: Wed, 14 Jun 2023 00:38:29 +0000
- To: public-css-archive@w3.org
I think the other value of these selectors is that they are much faster than `:has()` (though they require the browser to do a little bit of extra up-front work to get that benefit). I'm still quite concerned that `:has()` is going to create selector performance problems that will require things like lints to forbid `:has()` and developers to know to avoid it. While in theory we could detect and optimize some very specific cases of `:has()` such as `:has(:target)`, that seems like it would create more confusion around what the performance characteristics of CSS selectors are. There's value in creating a platform that is understandable to the developers that use it -- and this does apply to its performance characteristics. -- GitHub Notification of comment by dbaron Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8357#issuecomment-1590255065 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 14 June 2023 00:38:30 UTC