bottom-113

Bottom with a value of 'inherit'

WeasyPrint

This browser

Assertion
The 'bottom' property sets a value of 'inherit', inheriting the computed value from the parent element.

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: Bottom with a value of 'inherit'</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-bottom">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#position-props">
 8         <meta name="flags" content="">
 9         <meta name="assert" content="The 'bottom' property sets a value of 'inherit', inheriting the computed value from the parent element.">
10         <style type="text/css">
11             div
12             {
13                 position: relative;
14             }
15             #parent
16             {
17                 height: 1in;
18                 margin-top: 2in;
19             }
20             #div1
21             {
22                 border-top: 1in solid red;
23                 height: 1in;
24                 bottom: 100%;
25             }
26             #div2
27             {
28                 border-top: 1in solid black;
29                 bottom: inherit;
30             }
31         </style>
32     </head>
33     <body>
34         <p>Test passes if there is no red visible on the page.</p>
35         <div id="parent">
36             <div id="div1">
37                 <div id="div2"></div>
38             </div>
39         </div>
40     </body>
41 </html>