Skip to content

inert attribute + :modal pseudo-class #135

Closed

Description

@jensimmons

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.

Activity

  1. changed the title [-]`inert` attribute + :modal pseudo-element[/-] [+]`inert` attribute + `:modal` pseudo-element[/+] on Sep 15, 2022
  2. changed the title [-]`inert` attribute + `:modal` pseudo-element[/-] [+]`inert` attribute + `:modal` pseudo-class[/+] on Sep 16, 2022
  3. added this to the milestone on Sep 16, 2022
  4. jensimmons commented on Sep 26, 2022

    @jensimmons
    ContributorAuthor
  5. moved this to Proposed in Interop 2023on Oct 7, 2022
  6. removed this from the milestone on Oct 7, 2022
  7. gsnedders commented on Oct 13, 2022

    @gsnedders
    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.

  8. foolip commented on Oct 17, 2022

    @foolip
    Member

    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!

  9. added
    accepted
    on Feb 1, 2023
  10. foolip commented on Feb 1, 2023

    @foolip
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedfocus-area-proposal

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions