root-siblings.html (619B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Test: Parsing check for * ~ :root error handling</title> 4 <link rel="author" title="Microsoft" href="http://www.microsoft.com/"> 5 <link rel="help" href="https://drafts.csswg.org/selectors-3/#selector-syntax"> 6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 7 <meta name="assert" content="* ~ :root should not match anything"> 8 <style> 9 * ~ :root div { 10 background-color: red; 11 } 12 div { 13 width: 100px; 14 height: 100px; 15 background-color: green; 16 } 17 </style> 18 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 19 <div></div>