haikuwebkit/LayoutTests/fast/shadow-dom/blur-on-shadow-host-with-fo...

13 lines
411 B
Plaintext

Test that calling blur() on a shadow host of a focused element clears the focus.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS input = shadowRoot.querySelector("input"); input.focus(); shadowRoot.activeElement is input
PASS document.activeElement is shadowHost
PASS shadowHost.blur(); shadowRoot.activeElement is null
PASS successfullyParsed is true
TEST COMPLETE