WPT
wpt / html / semantics / interactive-elements / the-dialog-element / dialog-showModal.html
Spec: HTML ↗
Runs: Chrome 155.0.8042.0 (wpt@4eb09bcd9, 2026-09-04) | Firefox 157.0a1 (wpt@c3fcbf4ba, 2026-09-04) | Safari 251 preview (wpt@e7122b73f, 2026-09-04) | Ladybird 1.0-52f0f (wpt@a1ecd0c09, 2026-09-04) | Servo Servo 0.6 (wpt@2c385f65e, 2026-09-04) | Blitz a50cb8971 (wpt@a95401e4e, 2026-09-03)
View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 10/10 | 9/10 | 10/10 | 6/10 | 9/10 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| dialog element: showModal() | PASS | PASS | PASS | FAIL | PASS | — |
| showModal() on a <dialog> that already has an open attribute throws an InvalidStateError exception | PASS | PASS | PASS | PASS | PASS | — |
| showModal() on a <dialog> after initial showModal() and removing the open attribute | PASS | PASS | PASS | PASS | PASS | — |
| showModal() on a <dialog> not in a Document throws an InvalidStateError exception | PASS | PASS | PASS | PASS | PASS | — |
| when opening multiple dialogs, only the newest one is non-inert | PASS | PASS | PASS | PASS | PASS | — |
| opening dialog without focusable children | PASS | PASS | PASS | PASS | PASS | — |
| opening dialog with multiple focusable children | PASS | PASS | PASS | FAIL | PASS | — |
| opening dialog with multiple focusable children, one having the autofocus attribute | PASS | PASS | PASS | FAIL | PASS | — |
| when opening multiple dialogs, the most recently opened is rendered on top | PASS | FAIL | PASS | FAIL | FAIL | — |
| When the document is not attached to any pages, showModal() should throw. | PASS | PASS | PASS | PASS | PASS | — |