inline-block-valign-001

Test for vertical alignment on inline-block

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
This value causes an element to generate a block box, which itself is flowed as a single inline box, similar to a replaced element. The inside of an inline-block is formatted as a block box, and the element itself is formatted as an inline replaced element. The baseline of an 'inline-block' is the baseline of its last line box in the normal flow, unless it has either no in-flow line boxes or if its 'overflow' property has a computed value other than 'visible', in which case the baseline is the bottom margin edge.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html><head>
 3 <link rel="reference" href="inline-block-valign-001-ref.xht">
 4 <title>CSS Test: Test for vertical alignment on inline-block</title>
 5 <link rel="author" title="L. David Baron" href="http://dbaron.org/">
 6 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop">
 8 <meta name="assert" content="This value causes an element to generate a block box, which itself is flowed as a single inline box, similar to a replaced element. The inside of an inline-block is formatted as a block box, and the element itself is formatted as an inline replaced element.">
 9 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading">
10 <meta name="assert" content="The baseline of an 'inline-block' is the baseline of its last line box in the normal flow, unless it has either no in-flow line boxes or if its 'overflow' property has a computed value other than 'visible', in which case the baseline is the bottom margin edge.">
11 <meta name="flags" content="">
12 <style type="text/css">
13 span { display: inline-block; }
14 span > span { display: block; visibility: hidden; }
15 </style>
16 </head>
17 <body>
18 <table border="" height="200"><tbody><tr><td valign="bottom">
19 <p>a<span><span>x</span>bcd</span>e</p>
20 </td></tr></tbody></table>
21 
22 
23 </body></html>