root-siblings

Parsing check for * ~ :root error handling

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
* ~ :root should not match anything

Source

 1 <!DOCTYPE html>
 2 <html><head><meta charset="utf-8">
 3 <title>CSS Test: Parsing check for * ~ :root error handling</title>
 4 <link href="http://www.microsoft.com/" rel="author" title="Microsoft">
 5 <link href="https://drafts.csswg.org/selectors-3/#selector-syntax" rel="help">
 6 <link href="reference/ref-this-text-should-be-green.htm" rel="match">
 7 <meta content="* ~ :root should not match anything" name="assert">
 8 <style>
 9 * ~ :root p {
10   color: red;
11 }
12 p {
13   color: green;
14 }
15 </style>
16 </head><body><p>This text should be green.</p>
17 </body></html>