block-formatting-contexts-005

No padding or margin, left edges touch

WeasyPrint

This browser

Assertion
When there is no padding or margins on elements the left outer edge of the child box will touch the left edge of the containing block.

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: No padding or margin, left edges touch</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#block-formatting">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="When there is no padding or margins on elements the left outer edge of the child box will touch the left edge of the containing block.">
 9         <style type="text/css">
10             div
11             {
12                 height: 1in;
13             }
14             #div1
15             {
16                 border-left: solid 5px blue;
17             }
18             div div
19             {
20                 border-left: solid 5px orange;
21             }
22         </style>
23     </head>
24     <body>
25         <p>Test passes if there is no space between the blue and orange lines below.</p>
26         <div id="div1">
27             <div></div>
28         </div>
29     </body>
30 </html>