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: Inheriting Explicit Widths</title>
5 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style">
7 <meta name="flags" content="">
8 <meta name="assert" content="The computed width is inherited, even if the 'width' property does not apply.">
9 <style type="text/css">
10 .outer {
11 width: 10em;
12 }
13 .inner {
14 display: block;
15 width: inherit;
16 height: 1em;
17 background: blue;
18 }
19 .control {
20 width: 10em;
21 height: 1em;
22 background: orange;
23 }
24 </style>
25 </head>
26 <body>
27 <p>The blue and orange bars below must be equally wide.</p>
28
29 <div><span class="outer"><span class="inner"></span></span></div>
30 <div class="control"></div>
31 </body>
32 </html>