Skip to content

"check popover algorithm" check for open dialogs is weak #9335

@nt1m

Description

@nt1m

https://html.spec.whatwg.org/multipage/popover.html#check-popover-validity

element is a dialog element and has an open attribute

This check doesn't cover this case (in terms of top layer conflicts):

<script>
  onload = () => {
    dialog0.showModal();
    dialog0.open = false;
    dialog0.showPopover();
  };
</script>
<dialog id="dialog0" popover=""></dialog>

Should we change this check to checking whether the dialog is in modal state instead?

cc @annevk @domenic @mfreed7 @josepharhar @emilio @cathiechen

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions