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

Support for inert coming to Chromium soon #1842

Open
WilcoFiers opened this issue May 4, 2022 · 5 comments
Open

Support for inert coming to Chromium soon #1842

WilcoFiers opened this issue May 4, 2022 · 5 comments

Comments

@WilcoFiers
Copy link
Member

See https://developer.chrome.com/blog/inert/

I haven't thought through all the implications of this but I imagine there are going to be some definition that need to be updated.

@Jym77
Copy link
Collaborator

Jym77 commented May 10, 2022

Seems to have three effects on us:

inert may be overwritten by inert="false" on a descendant. So it acts more like an inherited CSS property (vs hidden which cannot be overwritten). Except we cannot use CSS language to describe all that, so it will be a bit annoying. This may end up with text like in Text inheriting its programmatic language from an element, so in turn we may want to share the definition of "value of the attribute on the closest inclusive ancestor defining it" 🤔

@Jym77
Copy link
Collaborator

Jym77 commented May 10, 2022

Side question is whether we want to handle the fact that elements out of a dialog should be inert even without the inert attribute... https://html.spec.whatwg.org/multipage/interaction.html#modal-dialogs-and-inert-subtrees

This could notably impact focus traps in "aria-hidden element is not focusable"

@Jym77
Copy link
Collaborator

Jym77 commented May 12, 2022

Decision:

  • add inert example to each rule that use one of these 3 definitions (similar coverage as for aria-hidden).
  • add dialog example to rules where it make sense.

@Jym77
Copy link
Collaborator

Jym77 commented Jul 18, 2022

It seems that the AMM is going to map inert to aria-hidden="true". So we can have a note in "Programmatically hidden", similar to the one about hidden being the same as display: none.

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