Click here to download the Blitz Browser!

WPT

wpt / html / interaction / focus / document-level-focus-apis / document-level-apis.html

Spec: HTML ↗

Runs: Chrome 155.0.8043.0 (wpt@b89af32bc, 2026-09-05) | Firefox 157.0a1 (wpt@b89af32bc, 2026-09-05) | Safari 251 preview (wpt@b89af32bc, 2026-09-05) | Ladybird 1.0-f437c (wpt@b89af32bc, 2026-09-06) | 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

ChromeFirefoxSafariLadybirdServoBlitz
Total4/44/44/44/43/4NOT RUN
SubtestChromeFirefoxSafariLadybirdServoBlitz
The body element must be the active element if no element is focusedPASSPASSPASSPASSPASS
The element must be the active element if it is focusedPASSPASSPASSPASSPASS
The hasFocus() method must return false if the Document has no browsing contextPASSPASSPASSPASSPASS
When a child browsing context is focused, its browsing context container is also focusedPASSPASSPASSPASSFAIL