| 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" lang="en"> |
| 3 <head> |
| 4 <title>CSS Test: Replaced inline elements wrapping around floats (% widths)</t
itle> |
| 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> |
| 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/Browse
rBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> |
| 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/replaced/0
05.html" type="text/html"/> |
| 8 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced
-width" /> |
| 9 <link rel="match" href="inline-replaced-width-014-ref.xht" /> |
| 10 |
| 11 <meta name="flags" content="image" /> |
| 12 |
| 13 <style type="text/css"> |
| 14 div.test { width: 300px; height: 100px; background: red; position: relative;
} |
| 15 div.inner { width: 300px; height: 50px; background: green; } |
| 16 div p { width: 125%; height: 50px; } /* 375px */ |
| 17 img { vertical-align: bottom; } |
| 18 img.float { float: left; height: 50px; width: 100px; } |
| 19 img.flow { width: 80%; height: 50px; } /* 300px */ |
| 20 span { position: absolute; bottom: 0; left: 0; background: green; height: 50p
x; width: 300px; } |
| 21 </style> |
| 22 </head> |
| 23 <body> |
| 24 <p>Test passes if there are 2 identical filled green rectangles and <strong>no
red</strong>.</p> |
| 25 <div class="test a"> |
| 26 <div class="inner"> |
| 27 <p> |
| 28 <img src="support/1x1-green.png" alt="Image download support must be enable
d" class="float"/> |
| 29 <img src="support/1x1-green.png" alt="Image support required for this test"
class="flow"/> |
| 30 </p> |
| 31 </div> |
| 32 </div> |
| 33 <div class="test b"> |
| 34 <div class="inner"> |
| 35 <p> |
| 36 <img src="support/1x1-green.png" alt="Image download support must be enable
d" class="float"/> |
| 37 <img src="support/1x1-red.png" alt="Image support required for this test" c
lass="flow"/> |
| 38 <span></span> |
| 39 </p> |
| 40 </div> |
| 41 </div> |
| 42 </body> |
| 43 </html> |
| OLD | NEW |