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

That sounds like another case that could be solved by being able to say in javascript "move focus as if the specified element were focused and the user hit tab or shift+tab" then you could just keep track of an element in your component before anything focusable and use that to "shift+tab" out and keep track of an element after everything focusable in your element and use it to "tab" out. That way you don't need to figure out what the previous/next focusable thing is yourself, just leave it up to the browser.

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


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

Received on Wednesday, 23 April 2025 18:39:56 UTC