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

inert attribute + :modal pseudo-class #135

Closed
jensimmons opened this issue Sep 15, 2022 · 4 comments
Closed

inert attribute + :modal pseudo-class #135

jensimmons opened this issue Sep 15, 2022 · 4 comments
Labels
accepted An accepted proposal focus-area-proposal Focus Area Proposal

Comments

@jensimmons
Copy link
Contributor

jensimmons commented Sep 15, 2022

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 a dialog — 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 out dialog 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.

@jensimmons jensimmons added the focus-area-proposal Focus Area Proposal label Sep 15, 2022
@jensimmons jensimmons changed the title inert attribute + :modal pseudo-element inert attribute + :modal pseudo-element Sep 15, 2022
@foolip foolip changed the title inert attribute + :modal pseudo-element inert attribute + :modal pseudo-class Sep 16, 2022
@gsnedders gsnedders added this to the Interop 2023 milestone Sep 16, 2022
@jensimmons
Copy link
Contributor Author

Inert tests

@foolip foolip moved this to Proposed in Interop 2023 Oct 7, 2022
@foolip foolip removed this from the Interop 2023 milestone Oct 7, 2022
@gsnedders
Copy link
Member

Existing tests:

https://wpt.fyi/results/css/selectors?label=master&label=experimental&aligned&view=subtest&q=modal shows there's also one in invalidation (albeit combined with :has, #134). If we accept both proposals, we'll need to decide which (or both!) of the focus areas to count that test towards.

@foolip
Copy link
Member

foolip commented Oct 17, 2022

This was mentioned by WordPress developer @youknowriad in https://make.wordpress.org/core/2022/10/10/seeking-proposals-for-interop-2023/#comment-43928:

I came across “inert” attribute recently, we can still use it a bit using a polyfill but would love to get rid of the polyfill.

Thanks Riad for sharing!

@foolip foolip added the accepted An accepted proposal label Feb 1, 2023
@foolip
Copy link
Member

foolip commented Feb 1, 2023

Thank you for proposing inert and :modal for gradients for inclusion in Interop 2023.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted An accepted proposal focus-area-proposal Focus Area Proposal
Projects
No open projects
Status: Proposed
Development

No branches or pull requests

3 participants