table-visual-layout-001

Cells can have padding

WeasyPrint

This browser

Flags
ahem
Assertion
Table cells can have padding.

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: Cells can have padding</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-layout">
 7         <meta name="flags" content="ahem">
 8         <meta name="assert" content="Table cells can have padding.">
 9         <style type="text/css">
10             td
11             {
12                 border-left: 5px solid black;
13                 border-top: 5px solid black;
14                 color: blue;
15                 font-family: Ahem;
16                 padding: 100px;
17             }
18         </style>
19     </head>
20     <body>
21         <p>Test passes if the blue box below is not touching the two black lines.</p>
22         <table>
23             <tr>
24                 <td>XXXXX</td>
25             </tr>
26         </table>
27     </body>
28 </html>