contextually-invalid-selectors-001.html (664B)
1 <!doctype html> 2 <meta charset="utf-8" /> 3 <title> 4 Contextually invalid selectors due to implicit :is() in nesting should not match and have no 5 specificity 6 </title> 7 <link rel="help" href="https://drafts.csswg.org/css-nesting/#nest-selector" /> 8 <link 9 rel="match" 10 href="/css/reference/ref-filled-green-100px-square-only.html" 11 /> 12 <style> 13 div { 14 color: green; 15 background-color: currentColor; 16 width: 100px; 17 height: 100px; 18 } 19 20 p { 21 color: initial; 22 } 23 24 *, 25 ::before { 26 & * { 27 color: red; 28 } 29 } 30 </style> 31 32 <p>Test passes if there is a filled green square.</p> 33 <div></div>