c414-flt-wrap-001.xht (1524B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Text Not Fitting Beside Replaced Float</title> 5 6 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/> 7 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 8 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-30 --> 9 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#floating-elements"/> 10 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats"/> 11 <link rel="match" href="c414-flt-wrap-001-ref.xht" /> 12 13 <meta name="flags" content="image" /> 14 15 <style type="text/css"><![CDATA[ 16 .test { width: 15em; margin: 1em; padding: 0; background: white; color: white; } 17 .test img.left { float: left; } 18 .test img.right { float: right; width: 15em; height: 7em; } 19 .test span { font: 6em monospace; } 20 ]]></style> 21 </head> 22 <body> 23 <p>Test passes if there is a filled green rectangle and if the word "FAIL" does not appear.</p> 24 <div class="test"> 25 <img src="support/1x1-white.png" alt="FAIL: You need image support for this test." class="left"/> 26 <img src="support/1x1-green.png" alt="FAIL: You need image support for this test." class="right"/> 27 <span> FAIL </span> 28 </div> 29 <!-- this test actually failed in Mozilla once --> 30 </body> 31 </html>