c31-important-000

important

WeasyPrint

This browser

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3  <head>
 4   <title>CSS Test: important</title>
 5   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#important">
 6   <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
 7   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 8   <style type="text/css">
 9    p { color: green ! important; }
10    p { color: red; }
11    p#id1 { color: red; }
12   </style>
13   <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#important-rules" title="6.4.2 !important rules">
14   <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascading-order" title="6.4.1 Cascading order">
15  </head>
16  <body>
17   <p> This line should be green. </p>
18   <p id="id1"> This line should be green. </p>
19   <p style="color: red;"> This line should be green. </p>
20  </body>
21 </html>