blob: 109fbcd16bce1bdad20433ecf9426e9127cd9f96 [file] [log] [blame]
This test checks that :focus-visible is not triggered by mouse focus on <input> elements which do not take text input.
If the user-agent does not claim to support the :focus-visible pseudo-class then SKIP this test.
Click each element element below to focus it.
If the element has a red outline, then the test result is FAILURE. If the element has a green background, then the test result is SUCCESS.
Focus me
Focus me
Focus me
Focus me
Focus me.
Focus me.
Focus me.
Focus me.
PASS Focus element SPAN#el-1 via mouse should NOT match :focus-visible as it does NOT support keyboard input
PASS Focus element SPAN#el-2 via mouse should NOT match :focus-visible as it does NOT support keyboard input
PASS Focus element SPAN#el-3 via mouse should NOT match :focus-visible as it does NOT support keyboard input
PASS Focus element BUTTON#el-4 via mouse should NOT match :focus-visible as it does NOT support keyboard input
PASS Focus element INPUT#el-5 via mouse should NOT match :focus-visible as it does NOT support keyboard input
PASS Focus element INPUT#el-6 via mouse should NOT match :focus-visible as it does NOT support keyboard input
PASS Focus element INPUT#el-7 via mouse should NOT match :focus-visible as it does NOT support keyboard input
PASS Focus element INPUT#el-8 via mouse should NOT match :focus-visible as it does NOT support keyboard input
PASS Focus element INPUT#el-9 via mouse should NOT match :focus-visible as it does NOT support keyboard input
PASS Focus element INPUT#el-10 via mouse should NOT match :focus-visible as it does NOT support keyboard input
PASS Focus element INPUT#el-12 via mouse should NOT match :focus-visible as it does NOT support keyboard input
PASS Focus element INPUT#el-13 via mouse should NOT match :focus-visible as it does NOT support keyboard input