1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
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">
15 border: solid
5px black
;
21 display: inline-block
;
27 background-color: blue
;
33 <p>Test passes if the blue square is on the left inner edge of the hollow black rectangle.
</p>