c5525-fltmrgn-000.xht (2759B)
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: float</title> 5 <meta name="flags" content="ahem image" /> 6 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#float"/> 7 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/> 8 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 9 <link rel="match" href="c5525-fltmrgn-000-ref.xht" /> 10 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"><![CDATA[ 13 div { background: red url(support/css1test5525b-0.png) no-repeat; color: green; 14 font: 15px/1 Ahem; padding: 0; width: 8em; border: solid black; } 15 img { float: left; color: red; } 16 .test1 { margin: 1em; background: red url(support/css1test5525b-1.png) no-repeat; } 17 .test2 { margin: 1em; background: red url(support/css1test5525b-2.png) no-repeat; } 18 .test2 img { margin-top: 0px; margin-left: 0px; height: 3em; } 19 .test3 { margin: 1em; background: red url(support/css1test5525b-3.png) no-repeat; } 20 .test3 img { margin-top: 30px; margin-left: 30px; height: 3em; } 21 .test4 { margin: 3em 1em 1em 3em; background: red url(support/css1test5525b-4.png) no-repeat; } 22 .test4 img { margin-top: -30px; margin-left: -30px; height: 3em; } 23 .test5 { margin: 1em; background: red url(support/css1test5525b-5.png) no-repeat; } 24 .test5 img { margin-right: 30px; margin-bottom: 30px; height: 3em; } 25 .test6 { margin: 1em; background: red url(support/css1test5525b-6.png) no-repeat; } 26 .test6 img { margin-right: -30px; margin-bottom: -30px; } /* has right height */ 27 ]]></style> 28 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats"/> 29 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#margin-properties" title="8.3 Margin properties: 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', and 'margin'"/> 30 </head> 31 <body> 32 <p>Test passes if there is a tall filled green rectangle with a black border and <strong>no red</strong>.</p> 33 <div> 34 <p class="test1"> 35 x x x xx x x x 36 </p> 37 <p class="test2"> 38 <img src="support/swatch-green.png" alt="FAIL" /> 39 x x x xx x x x 40 </p> 41 <p class="test3"> 42 <img src="support/swatch-green.png" alt="FAIL" /> 43 x x x xx x x x 44 </p> 45 <p class="test4"> 46 <img src="support/swatch-green.png" alt="FAIL" /> 47 x x x xx x x x 48 </p> 49 <p class="test5"> 50 <img src="support/swatch-green.png" alt="FAIL" /> 51 x x x xx x x x 52 </p> 53 <p class="test6"> 54 <img src="support/pattern-grg-rrg-rgg.png" alt="FAIL" /> 55 x x x xx x x x 56 </p> 57 </div> 58 </body> 59 </html>