floats-143.xht (1250B)
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: Nested floats: Basic</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-04-14 --> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/float/043.html" type="text/html"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" /> 9 <link rel="match" href="floats-143-ref.xht" /> 10 11 <style type="text/css"> 12 /* Disable kerning because kerning may differ for different node tree. */ 13 html { font-kerning: none; font-feature-settings: "kern" off; } 14 .float { float: left; background: red; padding: 0; margin: 0; list-style: none; } 15 .text { font: 900 2em/1 sans-serif; background: green; color: white; } 16 </style> 17 </head> 18 <body> 19 <p>There should be a single green block with the word "PASS" below.</p> 20 <ul class="float"> 21 <li class="float"> <span class="float text"> PA </span></li> 22 <li class="float"> <span class="float text"> SS </span></li> 23 </ul> 24 </body> 25 </html>