margin-bottom-104

Margin-bottom using percentages with a nominal value with a plus sign, +50%

WeasyPrint

This browser

Assertion
The 'margin-bottom' property sets a nominal length value in percentages with a plus sign.

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: Margin-bottom using percentages with a nominal value with a plus sign, +50%</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-margin-bottom">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#margin-properties">
 8         <meta name="flags" content="">
 9         <meta name="assert" content="The 'margin-bottom' property sets a nominal length value in percentages with a plus sign.">
10         <style type="text/css">
11             div
12             {
13                 height: 0;
14                 position: relative;
15                 width: 2in;
16             }
17             #div1
18             {
19                 border-bottom: 3px solid red;
20                 position: absolute;
21                 width: 100%;
22             }
23             #div2
24             {
25                 margin-bottom: +50%;
26             }
27             #div3
28             {
29                 border-bottom: 3px solid black;
30                 margin-top: -1in;
31             }
32         </style>
33     </head>
34     <body>
35         <p>Test passes if there is no red visible on the page.</p>
36         <div id="wrapper">
37             <div id="div1"></div>
38             <div id="div2"></div>
39             <div id="div3"></div>
40         </div>
41     </body>
42 </html>