padding-left-036

Padding-left using centimeters with a minimum plus one value, 1cm

WeasyPrint

This browser

Assertion
The 'padding-left' property handles a minimum plus one length value in centimeters.

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-left using centimeters with a minimum plus one value, 1cm</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#propdef-padding-left">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#padding-properties">
 8         <meta name="flags" content="">
 9         <meta name="assert" content="The 'padding-left' property handles a minimum plus one length value in centimeters.">
10         <style type="text/css">
11             div
12             {
13                 height: 50px;
14                 width: 0;
15             }
16             .parent1
17             {
18                 background: red;
19                 min-width: 37px
20             }
21             .test1, .test2
22             {
23                 padding-left: 1cm;
24             }
25             .test1
26             {
27                 background: green;
28             }
29             .test2
30             {
31                 background: red;
32             }
33             .child1
34             {
35                 background: green;
36                 left: -38px;
37                 position: relative;
38                 width: 38px;
39             }
40         </style>
41     </head>
42     <body>
43         <p>Test passes if there is no red visible on the page.</p>
44         <div class="parent1">
45             <div class="test1"></div>
46         </div>
47         <div class="test2">
48             <div class="child1"></div>
49         </div>
50     </body>
51 </html>