Files
servo/tests/wpt/meta/html/semantics/interactive-elements/the-dialog-element/focus-after-close.html.ini
Martin Robinson 33f74feffd script: Fully implement DocumentOrShadowRoot#activeElement (#43861)
`DocumentOrShadowRoot#activeElement` should return retargeted results.
What that means is that if the DOM anchor of the `Document`'s focused
focusable area is within a shadow root, `Document#activeElement` should
return the shadow host. This change implements that behavior, properly
returning the `activeElement` from both `Document` and `ShadowRoot`.

Testing: This causes a decent number of WPT tests and subtests to start
passing. One subtest starts to fail, because it uses the `autofocus`
attribute
which we do not yet support.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2026-04-02 11:12:30 +00:00

10 lines
392 B
INI
Vendored

[focus-after-close.html]
[Focus should be moved to the previously focused element (Complex dialog usage)]
expected: FAIL
[Focus should be moved to the previously focused element even if it has moved in between show/close]
expected: FAIL
[Focus should be moved to the previously focused element even if it has moved to shadow DOM root in between show/close]
expected: FAIL