ap | 9cd074c | 2006-01-05 20:48:53 +0000 | [diff] [blame] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
thatcher | ffd46e0 | 2005-10-25 00:42:22 +0000 | [diff] [blame] | 2 | <html> |
| 3 | <head> |
| 4 | <title>CSS 2.1 Test Suite: Replaced Elements</title> |
| 5 | <style type="text/css"> |
| 6 | p { color: navy; } |
| 7 | div { margin: 1em; } |
| 8 | img { display: block; margin-bottom: 5px; } |
| 9 | span { color: blue; font: 15px Ahem; vertical-align: top; background: red; display: block; width: 1em; } |
| 10 | .b img, .b span { font-size: 4em; height: 1em; } |
| 11 | </style> |
darin | ec37548 | 2007-01-06 01:36:24 +0000 | [diff] [blame] | 12 | <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" title="10.4 Minimum and maximum widths: 'min-width' and 'max-width'"> |
| 13 | <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" title="10.6.2 Inline replaced elements, block-level replaced elements in normal flow, 'inline-block' replaced elements in normal flow and floating replaced elements"> |
thatcher | ffd46e0 | 2005-10-25 00:42:22 +0000 | [diff] [blame] | 14 | </head> |
| 15 | <body> |
| 16 | <p> There should be no red anywhere. </p> |
| 17 | <p> There should be two identical squares after this line: </p> |
| 18 | <div class="a"> |
| 19 | <img alt="FAIL: Replaced content did not get replaced." src="support/swatch-blue.png"> |
| 20 | <span>X</span> |
| 21 | </div> |
| 22 | <p> There should be two identical squares after this line: </p> |
| 23 | <div class="b"> |
| 24 | <img alt="FAIL: Replaced content did not get replaced." src="support/swatch-blue.png"> |
| 25 | <span>X</span> |
| 26 | </div> |
| 27 | </body> |
| 28 | </html> |