| 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: Float set to 'left'</title> |
| 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> |
| 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/
BrowserBugsSection/css21testsuite/" /> <!-- 2012-03-26 --> |
| 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#float-pos
ition" /> |
| 8 <meta name="flags" content="" /> |
| 9 <meta name="assert" content="The 'float' property set to 'left' correctl
y aligns the element to the left and text/objects flow around it." /> |
| 10 <style type="text/css"> |
| 11 #div1 |
| 12 { |
| 13 border: 2px solid orange; |
| 14 width: 500px; |
| 15 } |
| 16 #div2 |
| 17 { |
| 18 float: left; |
| 19 background: blue; |
| 20 height: 1in; |
| 21 width: 1in; |
| 22 } |
| 23 </style> |
| 24 </head> |
| 25 <body> |
| 26 <p>Test passes if the blue square is in the upper left corner of the ora
nge box and the "Filler Text" flows around the blue square.</p> |
| 27 <div id="div1"> |
| 28 <div id="div2"></div> |
| 29 Filler Text Filler Text Filler Text Filler Text Filler Text Filler T
ext Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Fill
er Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text
Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler T
ext Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Fill
er Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text
Filler Text Filler Text |
| 30 </div> |
| 31 </body> |
| 32 </html> |
| OLD | NEW |