OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <meta charset="utf-8"> |
| 5 <title>CSS Variables Test: custom properties use normal inheritance and casc
ade rules</title> |
| 6 <link rel="author" title="Noah Collins" href="mailto:noahcollins@gmail.com"> |
| 7 <link rel="help" href="http://www.w3.org/TR/css-variables-1/#using-variables
"> |
| 8 <meta name="assert" content="custom properties are resolved with the normal
inheritance and cascade rules"> |
| 9 <link rel="match" href="reference/css-vars-custom-property-inheritance-ref.h
tml"> |
| 10 <style type="text/css"> |
| 11 |
| 12 /* test cascade importance */ |
| 13 :root { --color: #1c1 !important; } |
| 14 :root { --color: red; } |
| 15 |
| 16 /* test cascade order */ |
| 17 * { color: red; } |
| 18 |
| 19 /* test cascade order */ |
| 20 * { color: var(--color); } |
| 21 |
| 22 </style> |
| 23 </head> |
| 24 <body> |
| 25 <p>Green</p> |
| 26 <p>Green</p> |
| 27 <p>Green</p> |
| 28 <p>The test passes if everything is green. Any red means the test failed.</p
> |
| 29 </body> |
| 30 </html> |
OLD | NEW |