anonymous-table-cell-margin-collapsing.html (980B)
1 <!DOCTYPE html> 2 <title>Anonymous table cells with semi-complex margin collapsing inside</title> 3 <link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org"> 4 <link rel="help" href="https://www.w3.org/TR/CSS22/visuren.html#block-formatting" title="9.4.1 Block formatting contexts"> 5 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 6 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 7 <div style="display:table; height:100px; background:red;"> 8 <div style="display:table-row; background:green;"> 9 <div style="width:100px; margin:50px 0;"> 10 <div style="margin:50px 0;"></div> 11 </div> 12 <div style="margin:50px 0;"></div> 13 </div> 14 <div style="display:table-row; background:green;"> 15 <div style="margin:50px 0;"></div> 16 </div> 17 <!-- The above rows should use all available height, and the last 18 row should get nothing (or there'll be red). --> 19 <div style="display:table-row;"></div> 20 </div>