This test checks that if the active element matches ':focus-visible' and a mouse click causes focus to move elsewhere, the newly focused element should not match :focus-visible.

  1. If the user-agent does not claim to support the :focus-visible pseudo-class then SKIP this test.
  2. Press the TAB key.
  3. If the element that says "Initial" has a red outline, then the test rsult is a FAILURE.
  4. Use the mouse to focus the element below that says "Target".
  5. If the element that says "Target" has a green outline, then the test result is a SUCCESS.