act-rules / act-rules.github.io

Accessibility conformance testing rules for HTML
https://act-rules.github.io/
Other
137 stars 70 forks source link

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

Closed WilcoFiers closed 1 year ago

WilcoFiers commented 2 years ago

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 commented 1 year ago

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:

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

carlosapaduarte commented 1 year ago

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

carlosapaduarte commented 1 year ago

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