collapsed-borders-painting-order-001.html (836B)
1 <!DOCTYPE html> 2 <title>Painting order of collapsed table borders</title> 3 <link rel="author" title="Oriol Brufau" href="obrufau@igalia.com"> 4 <link rel="help" href="https://drafts.csswg.org/css-tables/#border-collapsing"> 5 <link rel="help" href="https://drafts.csswg.org/css-position-4/#painting-order"> 6 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/11570"> 7 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 8 <meta name="assert" content=" 9 The collapsed border of the table is painted in front of the border of the 10 block descendant. 11 "> 12 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 13 <table style="border-collapse: collapse"> 14 <td style="border: 50px solid green; padding: 0"> 15 <div style="border: 50px solid red; margin: -50px"></div> 16 </td> 17 </table>