Re: [csswg-drafts] [selectors] Drop `:target-within`, deprecate `:focus-within` (#8357)

Just pointing out that

 - `:focus-within` includes the element itself, so it may be convenient to avoid `:is(:focus, :has(:focus))`
 - `:focus-within` includes descendants in the flat tree, unlike `:has(:focus)`
 - It's likely that `:focus-within` has better performance

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8357#issuecomment-1404939311 using your GitHub account


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

Received on Thursday, 26 January 2023 12:34:59 UTC