| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> |
| 4 <title>CSS Test: Solving for width of block-level non-replaced elements
in normal flow</title> |
| 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> |
| 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/
BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-29 --> |
| 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#blockwidt
h" /> |
| 8 <link rel="match" href="block-non-replaced-width-001-ref.xht" /> |
| 9 |
| 10 <meta name="flags" content="" /> |
| 11 <meta name="assert" content="The equation; 'margin-left' + 'border-left-
width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'ma
rgin-right' is equal the width of containing block." /> |
| 12 <style type="text/css"> |
| 13 #div1 |
| 14 { |
| 15 background-color: orange; |
| 16 border: 5px solid orange; |
| 17 display: inline-block; |
| 18 } |
| 19 div div |
| 20 { |
| 21 background-color: orange; |
| 22 border-left: 10px solid orange; |
| 23 border-right: 10px solid orange; |
| 24 height: 20px; |
| 25 margin-left: 10px; |
| 26 margin-right: 10px; |
| 27 padding-left: 10px; |
| 28 padding-right: 10px; |
| 29 width: 80px; |
| 30 } |
| 31 #d3 |
| 32 { |
| 33 background-color: blue; |
| 34 height: 30px; |
| 35 position: absolute; |
| 36 top: 82px; |
| 37 width: 150px; |
| 38 } |
| 39 </style> |
| 40 </head> |
| 41 <body> |
| 42 <p>Test passes if the orange and blue rectangles have the <strong>same w
idth</strong>.</p> |
| 43 <div id="div1"> |
| 44 <div></div> |
| 45 </div> |
| 46 <div id="d3"></div> |
| 47 </body> |
| 48 </html> |
| OLD | NEW |