not-default-ns-001.html (865B)
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 *|div { 17 width: 100px; 18 height: 100px; 19 background: red; 20 } 21 22 /* Type selector, so ns should apply and this should match */ 23 *|*:not(div) { 24 display: none; 25 } 26 </style> 27 <div></div>