Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-selectors] Should iframe elements match :focus or :focus-visible? #11415

Open
josepharhar opened this issue Dec 27, 2024 · 0 comments
Open
Labels
selectors-4 Current Work

Comments

@josepharhar
Copy link
Contributor

Currently, iframe elements don't match :focus or :focus-visible in chrome, firefox, or safari. This got pointed out in a crbug: https://issues.chromium.org/issues/40944672

Here are some situations where we might or might not want to match :focus or :focus-visible

  1. Clicking inside an iframe
  2. Clicking a focusable element inside an iframe
  3. Keyboard focusing/navigating to an iframe with no focusable content (this will just focus the iframe element)
  4. Keyboard focusing/navigating to an iframe which has focusable content (this will focus the first focusable element in the iframe)
@Loirooriol Loirooriol added the selectors-4 Current Work label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
selectors-4 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants