inline-block-width-002b

Test for 'width: ' on inline-block

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

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-width-002-ref.xht">
 4 <title>CSS Test: Test for 'width: &lt;length&gt;' 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/visudet.html#inlineblock-width">
 8 <meta name="flags" content="">
 9 <style type="text/css">
10 body > div { width: 10em; }
11 body > div > div { display: inline-block; background: green; color: white; width: 20em; }
12 body > div > div > div { width: 20em; }
13 </style>
14 </head>
15 <body>
16 <div>x<div><div>y</div></div>z</div>
17 
18 
19 </body></html>