Bug 1705352 [wpt PR 28504] - [selectors] Simplify @supports check in :focus-visible tests, a=testonly
authorManuel Rego Casasnovas <rego@igalia.com>
Fri, 23 Apr 2021 10:18:33 +0000
changeset 577256 76dc00938bc93a2981597c144589a7c4dca88019
parent 577255 489ebe9ddd3cce01cc137573cf91a2df9ad561c4
child 577257 2a6c21e26458fac3bdb10bce53f23dc963df5193
push id141827
push userwptsync@mozilla.com
push dateSat, 24 Apr 2021 02:11:12 +0000
treeherderautoland@3a7d9d49c316 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1705352, 28504
milestone90.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1705352 [wpt PR 28504] - [selectors] Simplify @supports check in :focus-visible tests, a=testonly Automatic update from web-platform-tests [selectors] Simplify @supports check in :focus-visible tests -- wpt-commits: 19445e7b3990e1a72b99ebc86b81a8a496ee6a5f wpt-pr: 28504
testing/web-platform/tests/css/selectors/focus-visible-001.html
testing/web-platform/tests/css/selectors/focus-visible-002.html
testing/web-platform/tests/css/selectors/focus-visible-003.html
testing/web-platform/tests/css/selectors/focus-visible-004.html
testing/web-platform/tests/css/selectors/focus-visible-005.html
testing/web-platform/tests/css/selectors/focus-visible-006.html
testing/web-platform/tests/css/selectors/focus-visible-008.html
testing/web-platform/tests/css/selectors/focus-visible-009.html
testing/web-platform/tests/css/selectors/focus-visible-010.html
testing/web-platform/tests/css/selectors/focus-visible-011.html
testing/web-platform/tests/css/selectors/focus-visible-012.html
testing/web-platform/tests/css/selectors/focus-visible-013.html
testing/web-platform/tests/css/selectors/focus-visible-014.html
testing/web-platform/tests/css/selectors/focus-visible-015.html
testing/web-platform/tests/css/selectors/focus-visible-016.html
testing/web-platform/tests/css/selectors/focus-visible-017.html
testing/web-platform/tests/css/selectors/focus-visible-018.html
testing/web-platform/tests/css/selectors/focus-visible-019.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-001.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-002.tentative.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-003.tentative.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-004.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-005.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-006.tentative.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-007.tentative.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-008.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-009.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-010.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-011.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-012.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-013.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-014.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-015.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-016.tentative.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-017.tentative.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-018.html
testing/web-platform/tests/css/selectors/focus-visible-script-focus-019.html
--- a/testing/web-platform/tests/css/selectors/focus-visible-001.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-001.html
@@ -6,17 +6,17 @@
   <link rel="author" title="Rob Dodson" href="robdodson@chromium.org" />
   <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo" />
   <script src="/resources/testharness.js"></script>
   <script src="/resources/testharnessreport.js"></script>
   <script src="/resources/testdriver.js"></script>
   <script src="/resources/testdriver-actions.js"></script>
   <script src="/resources/testdriver-vendor.js"></script>
   <style>
-    @supports not (selector(:focus-visible)) {
+    @supports not selector(:focus-visible) {
       :focus {
         outline: red solid 5px;
         background-color: red;
       }
     }
 
     :focus-visible {
       outline: green solid 5px;
--- a/testing/web-platform/tests/css/selectors/focus-visible-002.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-002.html
@@ -7,17 +7,17 @@
   <link rel="author" title="Alice Boxhall" href="aboxhall@chromium.org" />
   <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo" />
   <script src="/resources/testharness.js"></script>
   <script src="/resources/testharnessreport.js"></script>
   <script src="/resources/testdriver.js"></script>
   <script src="/resources/testdriver-actions.js"></script>
   <script src="/resources/testdriver-vendor.js"></script>
   <style>
-    @supports not (selector(:focus-visible)) {
+    @supports not selector(:focus-visible) {
       :focus {
         outline: red solid 5px;
         background-color: red;
       }
     }
 
     :focus-visible {
       outline: green solid 5px;
--- a/testing/web-platform/tests/css/selectors/focus-visible-003.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-003.html
@@ -6,17 +6,17 @@
   <link rel="author" title="Alice Boxhall" href="aboxhall@chromium.org" />
   <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo" />
   <script src="/resources/testharness.js"></script>
   <script src="/resources/testharnessreport.js"></script>
   <script src="/resources/testdriver.js"></script>
   <script src="/resources/testdriver-actions.js"></script>
   <script src="/resources/testdriver-vendor.js"></script>
   <style>
-    @supports not (selector(:focus-visible)) {
+    @supports not selector(:focus-visible) {
       :focus {
         outline: red solid 5px;
         background-color: red;
       }
     }
 
     :focus-visible {
       outline: red solid 5px;
--- a/testing/web-platform/tests/css/selectors/focus-visible-004.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-004.html
@@ -6,17 +6,17 @@
   <link rel="author" title="Alice Boxhall" href="aboxhall@chromium.org" />
   <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo" />
   <script src="/resources/testharness.js"></script>
   <script src="/resources/testharnessreport.js"></script>
   <script src="/resources/testdriver.js"></script>
   <script src="/resources/testdriver-actions.js"></script>
   <script src="/resources/testdriver-vendor.js"></script>
   <style>
-    @supports not (selector(:focus-visible)) {
+    @supports not selector(:focus-visible) {
       :focus {
         outline: red solid 5px;
         background-color: red;
       }
     }
 
     :focus-visible {
       outline: red solid 5px;
--- a/testing/web-platform/tests/css/selectors/focus-visible-005.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-005.html
@@ -5,17 +5,17 @@
   <title>CSS Test (Selectors): Programmatic focus causes :focus-visible to match</title>
   <link rel="author" title="Alice Boxhall" href="aboxhall@chromium.org" />
   <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo" />
   <script src="/resources/testharness.js"></script>
   <script src="/resources/testharnessreport.js"></script>
   <script src="/resources/testdriver.js"></script>
   <script src="/resources/testdriver-vendor.js"></script>
   <style>
-    @supports not (selector(:focus-visible)) {
+    @supports not selector(:focus-visible) {
       :focus {
         outline: red solid 5px;
         background-color: red;
       }
     }
 
     :focus-visible {
       outline: red solid 5px;
--- a/testing/web-platform/tests/css/selectors/focus-visible-006.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-006.html
@@ -5,17 +5,17 @@
   <title>CSS Test (Selectors): contenteditable elements always match :focus-visible</title>
   <link rel="author" title="Alice Boxhall" href="aboxhall@chromium.org" />
   <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo" />
   <script src="/resources/testharness.js"></script>
   <script src="/resources/testharnessreport.js"></script>
   <script src="/resources/testdriver.js"></script>
   <script src="/resources/testdriver-vendor.js"></script>
   <style>
-    @supports not (selector(:focus-visible)) {
+    @supports not selector(:focus-visible) {
       :focus {
         outline: red solid 5px;
         background-color: red;
       }
     }
 
     span[contenteditable] {
         border: 1px solid black;
--- a/testing/web-platform/tests/css/selectors/focus-visible-008.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-008.html
@@ -5,17 +5,17 @@
   <title>CSS Test (Selectors): Keyboard focus enables :focus-visible</title>
   <link rel="author" title="Alice Boxhall" href="aboxhall@chromium.org" />
   <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo" />
   <script src="/resources/testharness.js"></script>
   <script src="/resources/testharnessreport.js"></script>
   <script src="/resources/testdriver.js"></script>
   <script src="/resources/testdriver-vendor.js"></script>
   <style>
-    @supports not (selector(:focus-visible)) {
+    @supports not selector(:focus-visible) {
       #el:focus {
         outline: red solid 5px;
         background-color: red;
       }
     }
 
     :focus-visible {
       outline: green solid 5px;
--- a/testing/web-platform/tests/css/selectors/focus-visible-009.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-009.html
@@ -3,17 +3,17 @@
 <head>
   <meta charset="utf-8" />
   <title>CSS Test (Selectors): Keyboard focus enables :focus-visible</title>
   <link rel="author" title="Alice Boxhall" href="aboxhall@chromium.org" />
   <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo" />
   <script src="/resources/testharness.js"></script>
   <script src="/resources/testharnessreport.js"></script>
   <style>
-    @supports not (selector(:focus-visible)) {
+    @supports not selector(:focus-visible) {
       #button:focus {
         outline: red solid 5px;
         background-color: red;
       }
     }
 
     :focus-visible {
       outline: green solid 5px;
--- a/testing/web-platform/tests/css/selectors/focus-visible-010.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-010.html
@@ -3,17 +3,17 @@
 <head>
   <meta charset="utf-8" />
   <title>CSS Test (Selectors): Keyboard focus enables :focus-visible</title>
   <link rel="author" title="Alice Boxhall" href="aboxhall@chromium.org" />
   <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo" />
   <script src="/resources/testharness.js"></script>
   <script src="/resources/testharnessreport.js"></script>
   <style>
-    @supports not (selector(:focus-visible)) {
+    @supports not selector(:focus-visible) {
       :focus {
         outline: red solid 5px;
         background-color: red;
       }
     }
 
     :focus-visible {
       outline: green solid 5px;
--- a/testing/web-platform/tests/css/selectors/focus-visible-011.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-011.html
@@ -5,17 +5,17 @@
   <title>CSS Test (Selectors): :focus-visible matches even if preventDefault() is called</title>
   <link rel="author" title="Alice Boxhall" href="aboxhall@chromium.org" />
   <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo" />
   <script src="/resources/testharness.js"></script>
   <script src="/resources/testharnessreport.js"></script>
   <script src="/resources/testdriver.js"></script>
   <script src="/resources/testdriver-vendor.js"></script>
   <style>
-    @supports not (selector(:focus-visible)) {
+    @supports not selector(:focus-visible) {
       #next:focus {
         outline: red solid 5px;
         background-color: red;
       }
     }
 
     button {
       border: 0;
--- a/testing/web-platform/tests/css/selectors/focus-visible-012.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-012.html
@@ -6,17 +6,17 @@
   <link rel="author" title="Alice Boxhall" href="aboxhall@chromium.org" />
   <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo" />
   <script src="/resources/testharness.js"></script>
   <script src="/resources/testharnessreport.js"></script>
   <script src="/resources/testdriver.js"></script>
   <script src="/resources/testdriver-actions.js"></script>
   <script src="/resources/testdriver-vendor.js"></script>
   <style>
-    @supports not (selector(:focus-visible)) {
+    @supports not selector(:focus-visible) {
       :focus {
         outline: red solid 5px;
         background-color: red;
       }
     }
 
     :focus-visible {
       outline: 0;
--- a/testing/web-platform/tests/css/selectors/focus-visible-013.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-013.html
@@ -3,17 +3,17 @@
 <title>CSS Selectors Test: :focus-visible does not match after mouse focus even if previous focused element was matching :focus-visible</title>
 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
 <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo" />
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <script src="/resources/testdriver.js"></script>
 <script src="/resources/testdriver-vendor.js"></script>
 <style>
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     :focus {
       outline: red solid 5px;
     }
   }
 
   #initial:focus-visible {
     outline: green solid 5px;
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-014.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-014.html
@@ -2,17 +2,17 @@
 <meta charset="utf-8" />
 <title>CSS Selectors Test: :focus-visible matches after script focus move</title>
 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
 <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo" />
 <meta name="assert" content="This test checks that if the active element matches ':focus-visible' and a script causes focus to move elsewhere, the newly focused element should match ':focus-visible'.">
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <style>
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     :focus {
       outline: red solid 5px;
       background-color: red;
     }
   }
 
   :focus-visible {
     background: lime;
--- a/testing/web-platform/tests/css/selectors/focus-visible-015.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-015.html
@@ -4,17 +4,17 @@
 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
 <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo" />
 <meta name="assert" content="This test checks that if the active element does not match ':focus-visible' and a script causes focus to move elsewhere, the newly focused element should not match ':focus-visible'.">
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <script src="/resources/testdriver.js"></script>
 <script src="/resources/testdriver-vendor.js"></script>
 <style>
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     :focus {
       outline: red solid 5px;
       background-color: red;
     }
   }
 
   :focus-visible {
     background: red;
--- a/testing/web-platform/tests/css/selectors/focus-visible-016.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-016.html
@@ -4,17 +4,17 @@
 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
 <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo" />
 <meta name="assert" content="This test checks that even if the active element does not match ':focus-visible' and a script causes focus to move into a text input, the text input should  match ':focus-visible'.">
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <script src="/resources/testdriver.js"></script>
 <script src="/resources/testdriver-vendor.js"></script>
 <style>
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     :focus {
       outline: red solid 5px;
       background-color: red;
     }
   }
 
   div:focus-visible {
     background: red;
--- a/testing/web-platform/tests/css/selectors/focus-visible-017.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-017.html
@@ -8,17 +8,17 @@
 <script src="/resources/testharnessreport.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-018.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-018.html
@@ -10,17 +10,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-019.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-019.html
@@ -10,17 +10,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-001.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-001.html
@@ -7,17 +7,17 @@
 <script src="/resources/testharnessreport.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-002.tentative.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-002.tentative.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-003.tentative.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-003.tentative.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-004.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-004.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-005.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-005.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-006.tentative.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-006.tentative.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-007.tentative.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-007.tentative.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-008.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-008.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-009.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-009.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-010.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-010.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-011.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-011.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-012.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-012.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-013.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-013.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-014.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-014.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-015.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-015.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-016.tentative.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-016.tentative.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-017.tentative.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-017.tentative.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-018.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-018.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }
--- a/testing/web-platform/tests/css/selectors/focus-visible-script-focus-019.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-script-focus-019.html
@@ -9,17 +9,17 @@
 <script src="/resources/testdriver-vendor.js"></script>
 <script src="/css/support/parsing-testcommon.js"></script>
 <style>
   #warning {
     display: none;
     background: red;
   }
 
-  @supports not (selector(:focus-visible)) {
+  @supports not selector(:focus-visible) {
     #instructions {
       display: none;
     }
 
     #warning {
       display: block;
     }
   }