positioning-float-001.xht (1234B)
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: Positioning a left floated element</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-09-24 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#positioning-scheme" /> 8 <link rel="match" href="positioning-float-001-ref.xht" /> 9 <meta name="assert" content="Floating a box will first lay out the box then shift it to the left." /> 10 <style type="text/css"> 11 /* Disable kerning because kerning may differ for different node tree. */ 12 html { font-kerning: none; font-feature-settings: "kern" off; } 13 14 div 15 { 16 font-size: 3em; 17 } 18 19 span 20 { 21 float: left; 22 } 23 </style> 24 </head> 25 <body> 26 <p>Test passes if there is the word "P A S S".</p> 27 <div>S <span>P A </span>S</div> 28 </body> 29 </html>