Skip to content

Give the :open pseudo a better ID than open-closed #3239

Closed

Description

@ddbeck

:closed was dropped from the spec, so fixing the ID would make this less confusing.

#3238

Blocked by #91

Activity

  1. added theissue type on Aug 20, 2025
  2. foolip commented on Sep 29, 2025

    @foolip
    Collaborator

    There are many things on the platform called open, so we could call this open-pseudo, but just open isn't taken yet, so just open would be more consistent with what we've done in the past.

  3. nt1m commented on Oct 10, 2025

    @nt1m
    Contributor

    open-pseudo-class or pseudo-class-open is what I would suggest

  4. foolip commented on Oct 10, 2025

    @foolip
    Collaborator

    https://github.com/web-platform-dx/web-features/blob/main/docs/guidelines.md#identifiers are the guidelines we have, and we have these existing IDs that end with "-pseudo":

    • column-pseudo, which could be just column, but there is a columns CSS property so I think disambiguating makes sense
    • dir-pseudo, because there's also a dir attribute
    • scope-pseudo, because there's also an @scope rule

    We have many IDs like autofill and default which are just named after :autofill and :default.

    In this case I think we should consider that we might add :closed later, and we'd want consistency. There are many things on the platform that have open or closed as part of their syntax, so I think that "open-pseudo" would be the winner here.

  5. added a commit that references this issue on Oct 10, 2025
  6. foolip commented on Oct 10, 2025

    @foolip
    Collaborator

    I've filed #3436 with more cases to consider.

  7. nt1m commented on Oct 10, 2025

    @nt1m
    Contributor

    I don't like pseudo because there's pseudo-classes and pseudo-elements, but I don't feel too strongly.

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

    feature definitionCreating or defining new features or groups of features.

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions