-
Notifications
You must be signed in to change notification settings - Fork 27
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
inert
attribute + :modal
pseudo-class
#135
Comments
inert
attribute + :modal pseudo-elementinert
attribute + :modal
pseudo-element
inert
attribute + :modal
pseudo-elementinert
attribute + :modal
pseudo-class
https://wpt.fyi/results/css/selectors?label=master&label=experimental&aligned&view=subtest&q=modal shows there's also one in |
This was mentioned by WordPress developer @youknowriad in https://make.wordpress.org/core/2022/10/10/seeking-proposals-for-interop-2023/#comment-43928:
Thanks Riad for sharing! |
Thank you for proposing We are pleased to let you know that this proposal was accepted as part of the Inert and CSS Pseudo-classes focus areas. You can follow the progress of these Focus Areas on the Interop 2023 dashboard. For an overview of our process, see the proposal selection summary. Thank you for contributing to Interop 2023! Posted on behalf of the Interop team. |
Description
The
:modal
pseudo-class targets a dialog when it's in an open state.The
inert
attribute provides web developers with a way to make an element inert, similar to the content behind adialog
— useful for situations that do not involve dialog.It might make sense to add these two items to the dialog focus area. Or perhaps not, and put them someplace else.
Rationale
These two features,
inert
and:modal
feel like work that was done to round outdialog
and make sure web developers have all of what they need to accessibly provide this kind of interactive UI. Adding these to Interop 2023 ensures such details are implemented fully interoperable.Specification
Inert in HTML: https://html.spec.whatwg.org/multipage/interaction.html#the-inert-attribute
:modal in CSS: https://w3c.github.io/csswg-drafts/selectors-4/#modal-state
Tests
Existing tests:
More tests are needed.
The text was updated successfully, but these errors were encountered: