diff --git a/css/selectors/focus-visible-017.html b/css/selectors/focus-visible-017.html new file mode 100644 index 00000000000000..21b7528f4e060a --- /dev/null +++ b/css/selectors/focus-visible-017.html @@ -0,0 +1,44 @@ + + +CSS Test (Selectors): By default initial programatic focus matches :focus-visible and it shows an auto focus ring + + + + + + + + +

This test checks that by default, if using JavaScript to focus an element triggers :focus-visible matching, then the element should show a focus ring with outline-style: auto.

+
    +
  1. If the element below that says "Target" show a focus ring with outline-style: auto, then the test result is SUCCESS.
  2. +
+

Your user-agent does not support :focus-visible pseudo-class, please SKIP this test.

+
Target
+ diff --git a/css/selectors/focus-visible-018.html b/css/selectors/focus-visible-018.html new file mode 100644 index 00000000000000..3f3ea8832c0bf7 --- /dev/null +++ b/css/selectors/focus-visible-018.html @@ -0,0 +1,49 @@ + + +CSS Test (Selectors): Mouse focus does not show a focus ring by default + + + + + + + + + + +

This test checks that by default, using the mouse to focus a generic element does not show a focus ring (because it does not trigger :focus-visible matching).

+
    +
  1. Click on the element below that says "Click me."
  2. +
  3. If the element does not have a focus ring, then the test result is SUCCESS.
  4. +
+

Your user-agent does not support :focus-visible pseudo-class, please SKIP this test.

+
Click me.
+