Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css2.1 / 20110323 / floats-001.html
blob25196c07354998c602bba35e2931e4f3003d50e6
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
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">
10 <meta name="flags" content="">
11 <meta name="assert" content="A left floated box shifts left until its outer edge touches the containing block edge.">
12 <style type="text/css">
13 #div1
15 border: solid 5px black;
16 height: 1in;
17 width: 2in;
19 div div
21 display: inline-block;
22 height: 1in;
23 width: 1in;
25 #div3
27 background-color: blue;
28 float: left;
30 </style>
31 </head>
32 <body>
33 <p>Test passes if the blue square is on the left inner edge of the hollow black rectangle.</p>
34 <div id="div1">
35 <div id="div2"></div>
36 <div id="div3"></div>
37 </div>
38 </body>
39 </html>