mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
`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>
10 lines
329 B
INI
Vendored
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
|