grid-item-fragmentation-027.tentative.html (807B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://drafts.csswg.org/css-grid-1/#pagination"> 3 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 4 <title>Tests that grid-items with a negative margin are placed relative to their row (instead of fragmenting earlier).</title> 5 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 6 <div style="background: red; width: 100px; height: 100px; display: flow-root;"> 7 <div style="margin-top: 10px; height: 90px; columns: 2; column-gap: 0;"> 8 <div style="display: grid; grid-template: 90px 90px / 50px;"> 9 <div> 10 <div style="background: green; margin-top: -10px; height: 100px;"></div> 11 </div> 12 <div style="background: green; margin-top: -10px; height: 100px;"></div> 13 </div> 14 </div> 15 </div>