Files
servo/tests/wpt/meta/html/semantics/interactive-elements/the-dialog-element/dialog-focus-previous-outside.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
329 B
INI
Vendored

[dialog-focus-previous-outside.html]
[Focus restore should occur when the focused element is in a shadowroot inside the dialog.]
expected: FAIL
[Focus restore should occur when the focused element is slotted into a dialog.]
expected: FAIL
[Focus restore should always occur for modal dialogs.]
expected: FAIL