| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st
rict.dtd"> | |
| 2 <html> | |
| 3 <head><meta charset="utf-8"/> | |
| 4 <title>CSS Test: Floats, shifting left until it touches container edge</
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-07-02 --> | |
| 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats"> | |
| 8 <link rel="match" href="reference/floats-001-ref.htm"> | |
| 9 | |
| 10 <meta name="flags" content=""> | |
| 11 <meta name="assert" content="A left floated box shifts left until its ou
ter edge touches the containing block edge."> | |
| 12 <style type="text/css"> | |
| 13 #div1 | |
| 14 { | |
| 15 border: solid 5px black; | |
| 16 height: 1in; | |
| 17 width: 2in; | |
| 18 } | |
| 19 div div | |
| 20 { | |
| 21 display: inline-block; | |
| 22 height: 1in; | |
| 23 width: 1in; | |
| 24 } | |
| 25 #div3 | |
| 26 { | |
| 27 background-color: blue; | |
| 28 float: left; | |
| 29 } | |
| 30 </style> | |
| 31 </head> | |
| 32 <body> | |
| 33 <p>Test passes if the blue square is on the left inner edge of the hollo
w black rectangle.</p> | |
| 34 <div id="div1"> | |
| 35 <div id="div2"></div> | |
| 36 <div id="div3"></div> | |
| 37 </div> | |
| 38 </body> | |
| 39 </html> | |
| OLD | NEW |