text-decoration-070.xht (959B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 5 <title>CSS Test: 'text-decoration' - 'color' inheritance</title> 6 <link rel="author" title="James Hopkins" href="http://idreamincode.co.uk/css21testsuite"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#lining-striking-props"/> 8 <meta name="assert" content="The color of 'text-decoration' of ascendant must be applied to descendants even if descendant elements have different 'color' values"/> 9 <style type="text/css"> 10 #test{ 11 color:lime; 12 font-size:80px; 13 text-decoration:line-through; 14 } 15 span{ 16 color:blue; 17 } 18 </style> 19 </head> 20 21 <body> 22 <p>To pass, there <strong>must</strong> be a green line through the text below.</p> 23 <div id="test"> 24 <span>text</span> 25 </div> 26 </body> 27 </html>