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

LeaVerou has just created a new issue for https://github.com/w3c/csswg-drafts:

== [selectors] Drop `:target-within`, deprecate `:focus-within` ==
`:target-within` and `:focus-within` were added to the language during an era when we thought we could never do `:has()`. They are special cases of `:has()`, namely to `:has(:target)` and `:has(:focus)`. Now that we have `:has()`, there's no reason to have them in the language. `:target-within` has no implementation, so we could just drop it. `:focus-within` is widely used (~[8% of websites](https://docs.google.com/spreadsheets/d/1OU8ahxC5oYU8VRryQs9BzHToaXcOntVlh6KUHjm15G4/edit#gid=370286500)) but it may make sense to deprecate so we could drop it one day, if usage drops.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8357 using your GitHub account


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

Received on Wednesday, 25 January 2023 18:01:45 UTC