c5508-ipadn-b-003

padding-bottom

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-bottom</title>
 5   <meta name="flags" content="ahem invalid">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#padding-bottom">
 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-bottom: 0; background-color: orange; color: blue;}
14    .one {padding-bottom: 0.125in; background-color: yellow; color: aqua;}
15    .two {padding-bottom: 12px; background-color: lime; color: fuchsia;}
16    .three {padding-bottom: 1em; background-color: blue; color: orange;}
17    .four {padding-bottom: 20%; background-color: aqua; color: yellow;}
18    .five {padding-bottom: -20px; background-color: fuchsia; color: lime;}
19 
20    .control { width: 60px; background: red; }
21    .control .blue { border-bottom: solid blue 12px; }
22    .control .yellow { border-bottom: solid yellow 12px; }
23    .control .aqua { border-bottom: solid aqua 12px; }
24    .control .lime { border-bottom: solid lime 12px; }
25    .control .fuchsia { border-bottom: solid fuchsia 12px; }
26    .control .orange { border-bottom: 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  </head>
30  <body>
31   <p>The next two columns should be identical.</p>
32   <table>
33    <tr>
34     <td>
35      <div class="test">
36       <p class="zero"> xxxxx </p>
37       <p class="one"> xxxxx </p>
38       <p class="two"> xxxxx </p>
39       <p class="three"> xxxxx </p>
40       <p class="four"> xxxxx </p>
41       <p class="five"> xxxxx </p>
42      </div>
43     </td>
44     <td class="control">
45      <div class="blue"></div>
46      <div class="aqua"></div>
47      <div class="yellow"></div>
48      <div class="fuchsia"></div>
49      <div class="lime"></div>
50      <div class="orange"></div>
51      <div class="blue"></div>
52      <div class="yellow"></div>
53      <div class="aqua"></div>
54      <div class="lime"></div>
55     </td>
56    </tr>
57   </table>
58  </body>
59 </html>