Skip to content

Dialogs cannot be shown with the Popover API #34

Description

@trnglina

The following rule prevents <dialog> elements from being shown with the Popover API:

:where(dialog:not([open])) {
  display: none;
}

This codepen demonstrates the issue: https://codepen.io/pokeplun/pen/GgjdgQx

The methods of showing the <dialog> that treat it as a popover don't result in a state that matches dialog[open] (they only match :popover-open), which results in the element never being shown by default.

<dialog popover> is perfectly reasonable semantically, so this seems like a bug

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions