Skip to content

Expand the iframe focusable rule to include scrollable non-interactive element in an iframe #2320

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

Open
shunguoy opened this issue Apr 10, 2025 · 1 comment
Assignees

Comments

@shunguoy
Copy link
Collaborator

The current iframe focusable rule is limited to navigating interactive elements for an iframe with a tabindex='-1'.
The current scrollable rule applies to scrollable elements that do not cover an iframe element.

A gap exists where an iframe contains scrollable content with a tabindex='-1'. In this case, a keyboard user is unable to view the full content through the scroll bar, regardless of whether the content contains any interactive element or not.

The recent Chrome updates add auto-focusable to iframe and scrollable element. This makes the major browsers consistent in the keyboard navigation of iframe and scrollable elements. However, when an iframe has a scrollable bar or contains scrollable content, the iframe is not automatically focusable in either Chrome or Firefox. This looks like a browser bug.

@carlosapaduarte
Copy link
Member

carlosapaduarte commented May 15, 2025

CG decision: create a rule for scrollable iframes to address iframes that need to be scrolled which is different from iframes with content that needs to be reached

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants