Skip to content

Dialogs cannot be shown with the Popover API #34

@trnglina

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions