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
- Clicking inside an iframe
- Clicking a focusable element inside an iframe
- Keyboard focusing/navigating to an iframe with no focusable content (this will just focus the iframe element)
- Keyboard focusing/navigating to an iframe which has focusable content (this will focus the first focusable element in the iframe)
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