Status: FAIL | Duration: 16ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
<!DOCTYPE HTML> <html> <meta charset="utf-8"> <title>CSS Grid Lanes Test: subgrid extra margin enlarges edge track beyond item size (columns)</title> <link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com"> <link rel="help" href="https://drafts.csswg.org/css-grid-3/#subgrids"> <link rel="match" href="column-subgrid-extra-margin-001-ref.html"> <style> .grid-lanes { display: inline grid-lanes; grid-template-columns: repeat(4, auto); border: 1px solid; } item { width: 10px; height: 40px; background: grey; } .subgrid { display: grid; grid: auto / subgrid; grid-column: 1 / span 4; border: 0 solid lightblue; border-right-width: 80px; background: yellow; } .subgrid > item { background: lightgrey; } </style> <div class="grid-lanes"> <item>1</item> <item>2</item> <item>3</item> <item style="width: 100%;">4</item> <div class="subgrid"> <item>a</item> <item>b</item> </div> </div> </html>
<!DOCTYPE HTML> <html> <meta charset="utf-8"> <style> .grid { display: inline-grid; grid-template-columns: repeat(4, auto); grid-template-rows: auto auto; border: 1px solid; } item { width: 10px; height: 40px; background: grey; } .subgrid { display: grid; grid: auto / subgrid; grid-column: 1 / span 4; border: 0 solid lightblue; border-right-width: 80px; background: yellow; } .subgrid > item { background: lightgrey; } </style> <div class="grid"> <item>1</item> <item>2</item> <item>3</item> <item style="width: 100%;">4</item> <div class="subgrid"> <item>a</item> <item>b</item> </div> </div> </html>