ap | 92b5752 | 2006-01-05 20:48:53 | [diff] [blame] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
thatcher | bea5137 | 2005-10-25 00:42:22 | [diff] [blame] | 2 | <html> |
| 3 | <head> |
| 4 | <title>CSS 2.1 Test Suite: float</title> |
| 5 | <style type="text/css"> |
| 6 | .a { background: url(support/pattern-tr.png) center top no-repeat; } |
| 7 | .b { background: url(support/swatch-red.png) left top no-repeat; } |
| 8 | p { margin: 0; float: left; width: 50%; } |
| 9 | img { float: none; color: red; vertical-align: top; } |
| 10 | </style> |
darin | 83dae6e | 2007-01-06 01:36:24 | [diff] [blame] | 11 | <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats"> |
| 12 | <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background-properties" title="14.2.1 Background properties: 'background-color', 'background-image', 'background-repeat', 'background-attachment', 'background-position', and 'background'"> |
thatcher | bea5137 | 2005-10-25 00:42:22 | [diff] [blame] | 13 | </head> |
| 14 | <body> |
| 15 | <div class="a"> |
| 16 | <div class="b"> |
| 17 | <p style="float: right"> |
| 18 | <img alt="FAIL" src="support/swatch-white.png"> |
| 19 | ⇦ There should be a green square at the top left of the window. |
| 20 | </p> |
| 21 | <img alt="FAIL" src="support/swatch-green.png"> |
| 22 | </div> |
| 23 | </div> |
| 24 | </body> |
| 25 | </html> |