| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" |
| 2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
| 3 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 <head> |
| 5 <title>CSS Test: Inheriting Explicit Widths</title> |
| 6 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.ne
t/contact"/> |
| 7 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/Browse
rBugsSection/css21testsuite/" /> <!-- 2012-11-07 --> |
| 8 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style"/> |
| 9 <link rel="match" href="block-non-replaced-width-001-ref.xht" /> |
| 10 |
| 11 |
| 12 <meta name="flags" content=""/> |
| 13 <meta name="assert" content="The computed width is inherited, even if the |
| 14 'width' property does not apply."/> |
| 15 <style type="text/css"> |
| 16 .outer { |
| 17 width: 9.375em; /* 150px */ |
| 18 } |
| 19 .inner { |
| 20 display: block; |
| 21 width: inherit; |
| 22 height: 1.875em; /* 30px */ |
| 23 background: orange; |
| 24 } |
| 25 .control { |
| 26 width: 9.375em; |
| 27 height: 1.875em; |
| 28 background: blue; |
| 29 } |
| 30 </style> |
| 31 </head> |
| 32 <body> |
| 33 <p>Test passes if the orange and blue rectangles have the <strong>same width<
/strong>.</p> |
| 34 |
| 35 <div><span class="outer"><span class="inner"></span></span></div> |
| 36 <div class="control"></div> |
| 37 </body> |
| 38 </html> |
| OLD | NEW |