| 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: 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/BrowserB
ugsSection/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#issuecomm
ent-210204244" /> |
| 9 <link rel="bookmark" href="http://lists.w3.org/Archives/Public/public-css-test
suite/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 <style type="text/css"><![CDATA[ |
| 14 div |
| 15 { |
| 16 background-color: blue; |
| 17 float: left; |
| 18 font: 30px/3 Ahem; /* computes to 30px/90px */ |
| 19 } |
| 20 |
| 21 span |
| 22 { |
| 23 background-color: white; |
| 24 color: white; |
| 25 float: left; |
| 26 margin-bottom: 1em; |
| 27 } |
| 28 ]]></style> |
| 29 |
| 30 </head> |
| 31 |
| 32 <body> |
| 33 |
| 34 <p>Test passes if there is a blue bar.</p> |
| 35 |
| 36 <div><span>Text sample</span></div> |
| 37 |
| 38 </body> |
| 39 </html> |
| 40 |
| OLD | NEW |