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' - inheritance exception 1</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="'text-decoration' values must not be propagated to floating descendants">
10 <style type="text/css">
11 #test{
12 font-size:80px;
13 text-decoration:line-through;
14 }
15 span{
16 float:left;
17 }
18 </style>
19 </head>
20
21 <body>
22 <p>To pass, there <strong>must not</strong> be a line through the text below.</p>
23 <div id="test">
24 <span>text</span>
25 </div>
26 </body>
27 </html>