This test checks that changing focus via script on keyboard event handler matches :focus-visible. | |
Type any letter with the keyboard without having done anything before. | |
If the element that says "Focused" has a red background, then the test result is FAILURE. If the element has a green outline, then the test result is SUCCESS. | |
Focused. | |
PASS ":focus-visible" should be a valid selector | |
PASS Focus via script on keyboard event handler matches ':focus-visible' | |