margin-collapsing-in-table-caption-001.html (662B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <link rel="author" title="David Grogan" href="dgrogan@chromium.org"> 4 <link rel="help" href="https://www.w3.org/TR/CSS22/tables.html#model"> 5 <link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> 6 <meta name="assert" content="margins between sibling blocks are collapsed inside caption" /> 7 <title> 8 Caption block containers are rendered same as normal block boxes 9 </title> 10 11 <style> 12 div { 13 margin: 10px; 14 height: 35px; 15 } 16 </style> 17 18 <p>Test passes if there is a filled green square.</p> 19 20 <table> 21 <caption style="width:100px; background:green"> 22 <div></div> 23 <div></div> 24 </caption> 25 </table>