c13-inh-underlin-000

Inheritance

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: Inheritance</title>
 5   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#inheritance">
 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   <!-- XXX Content-Style-Type -->
 9   <style type="text/css">
10    body { color: navy; }
11    .a { text-decoration: underline; }
12    #a { font-style: italic; }
13   </style>
14   <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#inheritance" title="6.2 Inheritance">
15   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#lining-striking-props" title="16.3.1 Underlining, overlining, striking, and blinking: the 'text-decoration' property">
16  </head>
17  <body>
18 
19   <p class="a"> This should be blue and underlined. </p>
20 
21   <p class="a"> This sentence should be underlined, including
22   <code>this part</code>, <cite>this part</cite>, <em>this part</em>,
23   and <strong>this part</strong>. </p>
24 
25   <p class="a" id="a"> This sentence should also be underlined, as
26   well as italics, <strong>including this part</strong>. </p>
27 
28   <p> This sentence should be blue but not underlined, like
29   <strong>this part</strong>, but <em style="text-decoration:   underline;">this part should be underlined</em>. </p>
30 
31  </body>
32 </html>