Re: [csswg-drafts] [selectors] `:focusable` pseudo-class (#7269)

This seems problematic due to circularities like `:focusable { display: none }`

Also, in Blink `element.focus()` inside `content-visibility: auto` forces style computation in order to determine if the element is focusable. Having `:focusable` do that would defeat `content-visibility: auto`.

So `:focusable-candidate` can be better but it's not clear how it should be defined.

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


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

Received on Thursday, 12 May 2022 15:56:18 UTC