floats-145.xht (1333B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Bottom margins on floats</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/float/045.html" type="text/html"/> 8 <link rel="bookmark" href="https://github.com/servo/servo/pull/10458#issuecomment-210204244" /> 9 <link rel="bookmark" href="http://lists.w3.org/Archives/Public/public-css-testsuite/2016Apr/0028.html" title="About floats-145" /> 10 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" /> 11 <link rel="match" href="floats-145-ref.xht" /> 12 13 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 14 <style type="text/css"><![CDATA[ 15 div 16 { 17 background-color: blue; 18 float: left; 19 font: 30px/3 Ahem; /* computes to 30px/90px */ 20 } 21 22 span 23 { 24 background-color: white; 25 color: white; 26 float: left; 27 margin-bottom: 1em; 28 } 29 ]]></style> 30 31 </head> 32 33 <body> 34 35 <p>Test passes if there is a blue bar.</p> 36 37 <div><span>Text sample</span></div> 38 39 </body> 40 </html> 41