From b26a734820ff4320f511758d7a06d139e1d5f470 Mon Sep 17 00:00:00 2001 From: Manuel Rego Casasnovas Date: Wed, 10 Feb 2021 08:57:37 +0100 Subject: [PATCH] [selectors-4] Remove example related to :focus:not(:focus-visible) (#4278) :focus:not(:focus-visible) is a workaround due to some implementations not following the spec (not using :focus-visible in the default UA style sheet). Apart that this is no longer needed as implementations have been updated, this kind of workarounds shouldn't be in the spec as they're confusing. Fixes #4278 --- selectors-4/Overview.bs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/selectors-4/Overview.bs b/selectors-4/Overview.bs index 1a9f34a46c3..0ef42df63b6 100644 --- a/selectors-4/Overview.bs +++ b/selectors-4/Overview.bs @@ -2326,23 +2326,6 @@ The Focus-Indicated Pseudo-class: '':focus-visible'' so that authors using '':focus-visible'' will not also need to disable the default '':focus'' style. -
- In this example, - authors use a '':not()'' pseudo-class to remove default user agent focus styling - if '':focus-visible'' is supported, - and provide enhanced focus styling via '':focus-visible''. - -
-	:focus:not(:focus-visible) {
-		outline: 0;
-	}
-
-	:focus-visible {
-		outline: 3px solid var(--focus-gold);
-	}
-	
-
-

The Focus Container Pseudo-class: '':focus-within''