| 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: Replaced inline elements with % widths</title> |
| 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-09-15 --> |
| 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/replaced/0
04.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 content="image" name="flags" /> |
| 12 |
| 13 <style type="text/css"> |
| 14 div.a { width: 300px; height: 100px; background: red; } |
| 15 div.a p { width: 200%; } |
| 16 div.a img { width: 50%; height: 100px; vertical-align: bottom; } |
| 17 div.b { width: 300px; position: relative; } |
| 18 div.b p { width: 200%; } |
| 19 div.b img { width: 50%; height: 100px; vertical-align: bottom; } |
| 20 div.b span { position: absolute; top: 0; left: 0; background: green; width: 3
00px; height: 100px; } |
| 21 </style> |
| 22 </head> |
| 23 |
| 24 <body> |
| 25 |
| 26 <p>Test passes if there are 2 identical filled green rectangles and <strong>no
red</strong>.</p> |
| 27 |
| 28 <div class="a"> |
| 29 <p> |
| 30 <img src="support/1x1-green.png" alt="Image support required for this test"/
> |
| 31 </p> |
| 32 </div> |
| 33 |
| 34 <div class="b"> |
| 35 <p> |
| 36 <img src="support/1x1-red.png" alt="Image support required for this test"/> |
| 37 <span></span> |
| 38 </p> |
| 39 </div> |
| 40 |
| 41 </body> |
| 42 </html> |
| OLD | NEW |