18217-width-1b.html (664B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS 2.1 Test Suite: Test for 'width' shrink-wrapping on inline-table</title> 5 <link rel="author" title="L. David Baron" href="https://dbaron.org/" /> 6 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#auto-table-layout" /> 8 <meta name="flags" content="" /> 9 <style type="text/css"> 10 body > div { width: 10em; } 11 body > div > div { display: inline-table; background: green; color: white; width: 10em; } 12 </style> 13 </head> 14 <body> 15 <div>x <div>This is some text that is wider than 10em but has no words wider than 10em.</div> z</div> 16 </body> 17 </html>