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

4 / 5 WPT subtests passing

Failed
1
Timed out
0
Not run
0
Test files
2
Blocking files
0

Chrome 4 / 5 WPT subtests passing on the same files, none blocking

Tests

2 test files here

Each test file opens in place to its subtests, and each subtest that did not pass to its message.

Test fileSubtests passingChromeFailedStanding
document-has-system-focus.html0 / 1 passingChrome 0 / 11 failedExempt
Standing
Exempt runner status OK
Chrome
Exempt 0 / 1 WPT subtests passing runner status TIMEOUT

Exempt from the 0.1 gate: Crane follows the browser majority

opening a popup does not blur the opener's document: with no host signal every tab has system focus, as in headless Chrome, so Crane and Chrome fail "assert_true: Document received blur event when popup opened expected true got false"; Firefox times out, Safari passes

Crane matches
Chrome
Chrome
wpt.fyi run 4786307730243584: 0/1 (Chrome 157, 2358bd4835)
Firefox
wpt.fyi run 4877168468033536: 0/1 (Firefox 160, 2358bd4835; TIMEOUT)
Safari
wpt.fyi run 6479119966273536: 1/1 (Safari 27.2, 2358bd4835)
Ruling
the user's ruling 2026-11-19 ~5:55 PM ET, "Host decides, headless default": with no host signal every tab has system focus (headless Chrome); a host that renders narrows it to its active tab through the protocol (inst2 T1(c))
Revisit
when Chrome changes its result on a newer aligned wpt.fyi run, or a host reports window focus through the protocol, or Crane's result moves
  1. FAILTop-level document receives blur/focus events and loses system focus during opening/closing of a popup
    assert_true: Document received blur event when popup opened expected true got false
document-level-apis.html4 / 4 passingChrome 4 / 40 failedClean
Standing
Clean runner status OK
Chrome
Clean 4 / 4 WPT subtests passing runner status OK
4 passing subtests
  1. The body element must be the active element if no element is focused
  2. The element must be the active element if it is focused
  3. The hasFocus() method must return false if the Document has no browsing context
  4. When a child browsing context is focused, its browsing context container is also focused

Written as HTML by tools/wpt_site/generate.zig from the runner’s journals and result streams; site.js adds the interactive chart, sorting, filtering and search. Faces: Source Serif 4, Public Sans and Source Code Pro, under the SIL Open Font License. Crane on GitHub.