WPT
wpt / html / semantics / interactive-elements / the-dialog-element / abspos-dialog-layout.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 | 10/10 | 10/10 | 10/10 | 9/10 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| showModal() should center in the viewport | PASS | PASS | PASS | PASS | PASS | — |
| Dialog should be recentered if showModal() is called after close() | PASS | PASS | PASS | PASS | PASS | — |
| Dialog should not recenter on relayout. | PASS | PASS | PASS | PASS | PASS | — |
| A tall dialog should be positioned at the top of the viewport. | PASS | PASS | PASS | PASS | PASS | — |
| The dialog should be centered regardless of the presence of a horizontal scrollbar. | PASS | PASS | PASS | PASS | PASS | — |
| Centering should work when dialog is inside positioned containers. | PASS | PASS | PASS | PASS | PASS | — |
| A centered dialog's position should survive becoming display:none temporarily. | PASS | PASS | PASS | PASS | PASS | — |
| Dialog should not still be centered when removed, and re-added to the document. | PASS | PASS | PASS | PASS | FAIL | — |
| Dialog's specified position should survive after close() and showModal(). | PASS | PASS | PASS | PASS | PASS | — |
| Dialog should be recentered if showModal() is called after removing 'open'. | PASS | PASS | PASS | PASS | PASS | — |