Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

  • This WPT test may be referenced by the following Test IDs:
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Grid Lanes Test: Clamping a nested subgrid's grid-template-areas (rows)</title>
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<link rel="help" href="https://drafts.csswg.org/css-grid-3">
<link rel="match" href="../../../../../reference/ref-filled-green-100px-square.xht">
<style>
.grid-lanes {
background: red;
display: grid-lanes;
grid-template-rows: 50px 50px;
height: 100px;
width: 100px;
}
.subgrid {
display: grid;
grid-template-rows: subgrid;
grid-template-columns: 50px 50px;
grid-row: span 2;
grid-template-areas: "item item"
"item item";
}
.item {
background: green;
grid-area: item;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="grid-lanes">
<div class="subgrid">
<div class="subgrid">
<div class="item"></div>
</div>
</div>
</div>