c62-percent-000.xht (1617B)
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: Percentage Units</title> 5 <meta name="flags" content="ahem image" /> 6 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#percentage-units"/> 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="c62-percent-000-ref.xht" /> 10 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"><![CDATA[ 13 p { margin: 1em 0; } 14 .zero { background: red url(support/css1test62-outer.png) no-repeat; width: 12em; font: 15px/1 Ahem; border: solid black; color: green ; } 15 .one { margin-left: 25%; margin-right: 25%; background: red url(support/css1test62-inner.png) no-repeat; } 16 .two { margin-left: 50%; margin-right: 0%; background: red url(support/css1test62-inner.png) no-repeat; } 17 .three { margin-left: 25%; } 18 ]]></style> 19 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#percentage-units" title="4.3.3 Percentages"/> 20 </head> 21 <body> 22 <p>Test passes if there is a filled green rectangle with a black border and <strong>no red</strong>.</p> 23 <div class="zero"> 24 <div class="one"> 25 <p> 26 x x x x x x x x x x x x x x x 27 </p> 28 </div> 29 <div class="two"> 30 <p> 31 x x x x x x x x x x x x x x x 32 </p> 33 </div> 34 <p class="three"> 35 x x x x x x x x x x x x x x x x x x x x 36 </p> 37 </div> 38 </body> 39 </html>