floated-table-wider-than-specified.html (947B)
1 <!DOCTYPE html> 2 <title>Floated table that becomes wider than its specified width, due to wide contents</title> 3 <link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org"> 4 <link rel="help" href="https://www.w3.org/TR/CSS22/visudet.html#float-width" title="10.3.5 Floating, non-replaced elements"> 5 <link rel="help" href="https://www.w3.org/TR/CSS22/tables.html#auto-table-layout" title="17.5.2.2 Automatic table layout"> 6 <link rel="match" href="../../reference/ref-filled-green-200px-square.html"> 7 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 8 <div style="width:200px; height:200px; background:red;"> 9 <div style="width:300px;"> 10 <div style="float:left; width:200px; height:100px; margin-right:10px; background:green;"></div> 11 <div style="float:left; display:table; width:50px; height:10px; background:green;"> 12 <div style="width:200px; height:100px;"></div> 13 </div> 14 </div> 15 </div>