blocks-018

CSS Blocks: Effect of Bottom Padding on Inline Layout

WeasyPrint

This browser

Assertion
Bottom padding on inline elements has no effect on 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: CSS Blocks: Effect of Bottom Padding on Inline Layout</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/008.xml" type="application/xhtml+xml">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#padding-properties">
 8   <meta name="assert" content="Bottom padding on inline elements has no effect on layout.">
 9   <style type="text/css">
10    /* reset everything to be sure we don't introduce oddities */
11    div { border: 0; padding: 0; margin: 0; line-height: 1;
12          display: block; width: 10em; }
13    span { border: 0; padding: 0; margin: 0; line-height: 1;
14           display: inline; white-space: nowrap; }
15 
16    /* the test */
17    div { background: red; }
18    span.control { background: green; color: white; }
19    span.test { padding-bottom: 10em; }
20   </style>
21  </head>
22  <body>
23   <div>
24    <span class="test"><span class="control">There should be no red on this page.</span></span>
25   </div>
26  </body>
27 </html>