1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
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="flags" content="">
9 <meta name="assert" content="The color of 'text-decoration' of ascendant must be applied to descendants even if descendant elements have different 'color' values">
10 <style type="text/css">
11 #test{
12 color:lime;
13 font-size:80px;
14 text-decoration:line-through;
15 }
16 span{
17 color:blue;
18 }
19 </style>
20 </head>
21
22 <body>
23 <p>To pass, there <strong>must</strong> be a green line through the text below.</p>
24 <div id="test">
25 <span>text</span>
26 </div>
27 </body>
28 </html>