c5506-padn-t-000.xht (2720B)
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: padding-top</title> 5 <meta name="flags" content="ahem invalid" /> 6 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#padding-top"/> 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="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-03-29 --> 10 <link rel="match" href="c5506-padn-t-000-ref.xht" /> 11 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 13 <style type="text/css"><![CDATA[ 14 td { padding: 0; border: solid black; } 15 p { margin: 0; } 16 .test { font: 20px/1 Ahem; width: 5em; } 17 .zero {padding-top: 0; background-color: orange; color: blue;} 18 .one {padding-top: 0.20833in; background-color: yellow; color: aqua;} 19 .two {padding-top: 20px; background-color: lime; color: fuchsia;} 20 .three {padding-top: 1em; background-color: blue; color: orange;} 21 .four {padding-top: 20%; background-color: aqua; color: yellow;} 22 .five {padding-top: -20px; background-color: fuchsia; color: lime;} 23 24 .control { width: 100px; background: red; } 25 .control .blue { border-top: solid blue 20px; } 26 .control .yellow { border-top: solid yellow 20px; } 27 .control .aqua { border-top: solid aqua 20px; } 28 .control .lime { border-top: solid lime 20px; } 29 .control .fuchsia { border-top: solid fuchsia 20px; } 30 .control .orange { border-top: solid orange 20px; } 31 ]]></style> 32 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#padding-properties" title="8.4 Padding properties: 'padding-top', 'padding-right', 'padding-bottom', 'padding-left', and 'padding'"/> 33 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" title="4.3.2 Lengths"/> 34 </head> 35 <body> 36 <p>The next two columns should be identical.</p> 37 <table> 38 <tr> 39 <td> 40 <div class="test"> 41 <p class="zero"> xxxxx </p> 42 <p class="one"> xxxxx </p> 43 <p class="two"> xxxxx </p> 44 <p class="three"> xxxxx </p> 45 <p class="four"> xxxxx </p> 46 <p class="five"> xxxxx </p> 47 </div> 48 </td> 49 <td class="control"> 50 <div class="blue"></div> 51 <div class="yellow"></div> 52 <div class="aqua"></div> 53 <div class="lime"></div> 54 <div class="fuchsia"></div> 55 <div class="blue"></div> 56 <div class="orange"></div> 57 <div class="aqua"></div> 58 <div class="yellow"></div> 59 <div class="lime"></div> 60 </td> 61 </tr> 62 </table> 63 </body> 64 </html>