You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fe9009c
Browse filesBrowse the repository at this point in the historyBrowse files
authored
Update focused area handling
Respect display and the flat tree when determining focusability
Prevent focus on elements with display: none on themselves or their flat-tree ancestors, and on elements excluded from the flat tree. Follow shadow hosts and slot assignments, including closed shadow roots, nested slots, unassigned light DOM, and fallback content replaced by assigned nodes. Use computed styles so CSS can override the hidden attribute.
Invalidate cached computed styles when focus changes, before dispatching focus and blur events. This keeps :focus, :focus-visible, :focus-within, and selectors containing them current, including during reentrant focus changes and transitions between documents.
Allow computed style resolution for elements without inline-style support, while still applying stylesheet rules. This supports focusability checks through MathML and XML ancestors and fixes existing XML selector tests.
Co-authored-by: Domenic Denicola <[email protected]>
Co-authored-by: codex <[email protected]>
// This does not check for a designMode Document as specified in
65
78
// https://html.spec.whatwg.org/multipage/interaction.html#editing-host because the designMode
"Default fill after inserting an XML element without the SVG namespace": [fail, https://github.com/jsdom/jsdom/issues/2688]
10
+
uievents/focusevents/focusable-area.html:
11
+
"Calling focus() on an inert element does nothing": [fail, inert not implemented]
12
+
"Calling focus() on an element with an inert ancestor does nothing": [fail, inert not implemented]
13
+
"Calling focus() on an element inside an inert shadow host does nothing": [fail, inert not implemented]
12
14
uievents/focusevents/hasfocus-focus-blur.html:
13
15
"document.hasFocus() returns true during internal focus shifts (blur and focus)": [fail, Need to fix document.hasFocus()]
0 commit comments