c5506-padn-t-000

padding-top

WeasyPrint

This browser

Flags
ahem, invalid

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 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   <style type="text/css">
10    td { padding: 0; border: solid black; }
11    p { margin: 0; }
12    .test { font: 12px/1 Ahem; width: 5em; }
13    .zero {padding-top: 0; background-color: orange; color: blue;}
14    .one {padding-top: 0.125in; background-color: yellow; color: aqua;}
15    .two {padding-top: 12px; background-color: lime; color: fuchsia;}
16    .three {padding-top: 1em; background-color: blue; color: orange;}
17    .four {padding-top: 20%; background-color: aqua; color: yellow;}
18    .five {padding-top: -20px; background-color: fuchsia; color: lime;}
19 
20    .control { width: 60px; background: red; }
21    .control .blue { border-top: solid blue 12px; }
22    .control .yellow { border-top: solid yellow 12px; }
23    .control .aqua { border-top: solid aqua 12px; }
24    .control .lime { border-top: solid lime 12px; }
25    .control .fuchsia { border-top: solid fuchsia 12px; }
26    .control .orange { border-top: solid orange 12px; }
27   </style>
28   <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'">
29   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" title="4.3.2 Lengths">
30  </head>
31  <body>
32   <p>The next two columns should be identical.</p>
33   <table>
34    <tr>
35     <td>
36      <div class="test">
37       <p class="zero"> xxxxx </p>
38       <p class="one"> xxxxx </p>
39       <p class="two"> xxxxx </p>
40       <p class="three"> xxxxx </p>
41       <p class="four"> xxxxx </p>
42       <p class="five"> xxxxx </p>
43      </div>
44     </td>
45     <td class="control">
46      <div class="blue"></div>
47      <div class="yellow"></div>
48      <div class="aqua"></div>
49      <div class="lime"></div>
50      <div class="fuchsia"></div>
51      <div class="blue"></div>
52      <div class="orange"></div>
53      <div class="aqua"></div>
54      <div class="yellow"></div>
55      <div class="lime"></div>
56     </td>
57    </tr>
58   </table>
59  </body>
60 </html>