not-default-ns-002.html (869B)
1 <!doctype html> 2 <title>Default namespace gets ignored inside non-type selectors for :is() / :not() / :where().</title> 3 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> 4 <link rel="author" title="Mozilla" href="https://mozilla.org"> 5 <link rel="help" href="https://drafts.csswg.org/selectors-4/#negation"> 6 <!-- 7 Default namespace declarations do not affect the compound selector 8 representing the subject of any selector within a :not() pseudo-class, unless 9 that compound selector contains an explicit universal selector or type 10 selector. 11 --> 12 <link rel="match" href="/css/reference/blank.html"> 13 <style> 14 @namespace url("http://www.w3.org/2000/svg"); 15 16 *|input { 17 display: none; 18 } 19 20 /* No type selector, so selector should _not_ match and keep the input hidden */ 21 *|input:not(:disabled) { 22 display: initial; 23 } 24 </style> 25 <input disabled>