WPT
wpt / html / semantics / interactive-elements / the-dialog-element / focus-after-close.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 | 7/7 | 7/7 | 7/7 | 0/7 | 0/7 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| Focus should be moved to the previously focused element (Simple dialog usage) | PASS | PASS | PASS | FAIL | FAIL | — |
| Focus should be moved to the previously focused element (Complex dialog usage) | PASS | PASS | PASS | FAIL | FAIL | — |
| Focus should be moved to the previously focused element even if it has moved in between show/close | PASS | PASS | PASS | FAIL | FAIL | — |
| Focus should be moved to the previously focused element even if it has moved to shadow DOM root in between show/close | PASS | PASS | PASS | FAIL | FAIL | — |
| Focus should be moved to the body if the previously focused element is removed | PASS | PASS | PASS | FAIL | FAIL | — |
| Focus should be moved to the shadow DOM host if the previouly focused element is a shadow DOM node | PASS | PASS | PASS | FAIL | FAIL | — |
| Focus should not scroll if the previously focused element is outside the viewport | PASS | PASS | PASS | FAIL | FAIL | — |