c13-inh-underlin-000.xht (1668B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 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 <meta http-equiv="Content-Style-Type" content="text/css" /> 9 10 <style type="text/css"><![CDATA[ 11 body { color: navy; } 12 .a { text-decoration: underline; } 13 #a { font-style: italic; } 14 ]]></style> 15 <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#inheritance" title="6.2 Inheritance"/> 16 <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#inheriting"/> 17 <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#inheriting"/> 18 <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"/> 19 </head> 20 <body> 21 22 <p class="a"> This should be blue and underlined. </p> 23 24 <p class="a"> This sentence should be underlined, including 25 <code>this part</code>, <cite>this part</cite>, <em>this part</em>, 26 and <strong>this part</strong>. </p> 27 28 <p class="a" id="a"> This sentence should also be underlined, as 29 well as italics, <strong>including this part</strong>. </p> 30 31 <p> This sentence should be blue but not underlined, like 32 <strong>this part</strong>, but <em style="text-decoration: 33 underline;">this part should be underlined</em>. </p> 34 35 </body> 36 </html>