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: Text-decoration set to 'inherit', inheriting four values</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#propdef-text-decoration">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#lining-striking-props">
8 <meta name="flags" content="may animated">
9 <meta name="assert" content="The 'text-decoration' set to 'inherit' on an element will inherit the text-decoration set on the div1 element.">
10 <style type="text/css">
11 #div1
12 {
13 text-decoration: underline overline line-through blink;
14 }
15 div div
16 {
17 text-decoration: underline;
18 text-decoration: inherit;
19 }
20 </style>
21 </head>
22 <body>
23 <p>Test passes if the "Filler Text" below has a line over it, a line under it and a line through it. User agents may also blink the text on and off the screen.</p>
24 <div id="div1">
25 <div>Filler Text</div>
26 </div>
27 </body>
28 </html>