inline-formatting-context-007

Inline formatting context with right padding

WeasyPrint

This browser

Assertion
Right padding are respected between inline boxes.

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: Inline formatting context with right padding</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#inline-formatting">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="Right padding are respected between inline boxes.">
 9         <style type="text/css">
10             div
11             {
12                 display: inline;
13             }
14             #div1
15             {
16                 background: black;
17                 padding-right: 100px;
18             }
19             div div
20             {
21                 background: white;
22             }
23         </style>
24     </head>
25     <body>
26         <p>Test passes if there is a box on the right side of the "Filler Text".</p>
27         <div id="div1">
28             <div>Filler Text</div>
29         </div>
30     </body>
31 </html>