| 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
02.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-012-ref.xht" /> |
| 10 |
| 11 <meta name="flags" content="image" /> |
| 12 |
| 13 <style type="text/css"> |
| 14 div { width: 600px; height: 200px; background: red; } |
| 15 div p { height: 100px; background: green; } |
| 16 img { vertical-align: bottom; } |
| 17 img.float { float: left; } |
| 18 img.flow { width: 100%; height: 100px; } |
| 19 </style> |
| 20 </head> |
| 21 <body> |
| 22 <p>Test passes if there is <strong>no red</strong>.</p> |
| 23 <div> |
| 24 <p> |
| 25 <img src="support/swatch-green.png" height="100" alt="Image download support
must be enabled" class="float"/> |
| 26 <img src="support/swatch-green.png" alt="Image support required for this tes
t" class="flow"/> |
| 27 </p> |
| 28 </div> |
| 29 </body> |
| 30 </html> |
| OLD | NEW |