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 inheriting two values</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">
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' property set to 'inherit' and inheriting two values.">
10 <style type="text/css">
11 #wrapper
12 {
13 padding: 96px 24px;
14 position: relative;
15 }
16 #div1
17 {
18 border: 10px solid green;
19 left: 0;
20 padding: inherit;
21 position: absolute;
22 top: 0;
23 }
24 #div2
25 {
26 border: 10px solid green;
27 height: 96px;
28 width: 288px;
29 }
30 #reference
31 {
32 border: 10px solid red;
33 height: 308px;
34 left: 0;
35 position: absolute;
36 top: 0;
37 width: 356px;
38 }
39 </style>
40 </head>
41 <body>
42 <p>Test passes if there is no red visible on the page.</p>
43 <div id="wrapper">
44 <div id="reference"></div>
45 <div id="div1">
46 <div id="div2"></div>
47 </div>
48 </div>
49 </body>
50 </html>