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-indent set to 'inherit'</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-indent">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#indentation-prop">
8 <meta name="flags" content="ahem">
9 <meta name="assert" content="Ensure that text-indent with inherit uses its parent's value for text-indent.">
10 <style type="text/css">
11 #parent
12 {
13 font: 16px/1em Ahem;
14 text-indent: 96px;
15 }
16 #reference
17 {
18 margin-left: 96px;
19 text-indent: 0;
20 }
21 #test
22 {
23 text-indent: 0;
24 text-indent: inherit;
25 }
26 </style>
27 </head>
28 <body>
29 <p>Test passes if there is one black box on this page (with no jagged edges).</p>
30 <div id="parent">
31 <div id="reference">X</div>
32 <div id="test">X</div>
33 </div>
34 </body>
35 </html>