outline-layout-001

Outlines and box layout

WeasyPrint

This browser

Assertion
Outlines do not affect box layout.

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: Outlines and box layout</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/ui.html#dynamic-outlines">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="Outlines do not affect box layout.">
 9         <style type="text/css">
10             #div1
11             {
12                 border-bottom: 10px solid red;
13                 width: 100px;
14                 height: 20px;
15             }
16             #div2
17             {
18                 outline: 10px solid green;
19                 width: 200px;
20                 height: 100px;
21             }
22         </style>
23     </head>
24     <body>
25         <p>Test passes if there is no red visible on the page.</p>
26         <div id="div1"></div>
27         <div id="div2"></div>
28     </body>
29 </html>