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

Should inert iframes with focusable content fail? [akn7bn] #1965

Closed
WilcoFiers opened this issue Oct 27, 2022 · 3 comments · Fixed by #2125
Closed

Should inert iframes with focusable content fail? [akn7bn] #1965

WilcoFiers opened this issue Oct 27, 2022 · 3 comments · Fixed by #2125
Assignees

Comments

@WilcoFiers
Copy link
Member

This related to the Iframe Iframe with interactive elements is not excluded from tab-order rule. It indicates that iframes with negative tabindex are a problem, but there's now another way to disable focus on iframe, by using inert.

I don't think iframes with inert should fail this rule, but I'd like other's opinion about that.

@giacomo-petri
Copy link
Collaborator

I don't think iframes with inert should fail this rule, but I'd like other's opinion about that.

I agree; if the author consciously set the inert attribute to an iframe we should (?) assume that the intent is to prevent users navigating the iframe.

Side note: it's interesting how, setting the inert property to the iframe, it:

  • allows mouse users to scroll and perceive visually the content of the iframe
  • prevents keyboard and AT (such as screen readers) users to perceive the content of the iframe

setting instead the inert property to the body inside the iframe, it:

  • allows mouse users to scroll and perceive visually the content of the iframe
  • allows keyboard users to scroll using up/down arrows and perceive visually the content of the iframe
  • prevents AT (such as screen readers) users to perceive the content of the iframe

@carlosapaduarte
Copy link
Member

Initial discussion in the CG call. To be continued in the next meeting

@carlosapaduarte
Copy link
Member

Update the applicability to exclude inert iframes and create our definition of inert, that includes the inter attribute and content outside a modal

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

Successfully merging a pull request may close this issue.

3 participants