KEMBAR78
Is it ok for popover to claim general names like :open and :closed? · Issue #9055 · whatwg/html · GitHub
Skip to content

Is it ok for popover to claim general names like :open and :closed? #9055

@jakearchibald

Description

@jakearchibald

https://html.spec.whatwg.org/multipage/semantics-other.html#pseudo-classes:popover-showing-state

Right now, popovers get a pseudo-class of :open when they're open, and :closed when they're closed.

These seem like really general names. Does it make sense for popover to own them?

Without understanding this is purely a popover feature, it seems weird that el.matches(':open') doesn't apply to open <details>, <dialog>, <select>, etc etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: popoverThe popover attribute and friends

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions