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 hereEach 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.html 0 / 1 passingChrome 0 / 11 failedExempt
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
- ¶
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.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- The body element must be the active element if no element is focused
- The element must be the active element if it is focused
- The hasFocus() method must return false if the Document has no browsing context
- When a child browsing context is focused, its browsing context container is also focused