Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-grid/subgrid/standalone-axis-size-013.html - WPT Dashboard Interop Dashboard
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>CSS Grid Test: Subgridded item is measured against the subgrid's standalone-axis tracks</title>
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
.wrapper {
width: 100px;
height: 100px;
background: red;
}
.grid {
display: grid;
width: min-content;
background: green;
color: transparent;
font: 25px/1 Ahem;
}
.subgrid {
display: grid;
grid-template-columns: subgrid;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="wrapper">
<div class="grid">
<div class="subgrid" style="height: 100px; grid-template-rows: repeat(4, 1fr);">
<div class="subgrid" style="grid-template-rows: subgrid;">
<div class="subgrid" style="grid-template-rows: subgrid;">
<div style="writing-mode: vertical-lr;">X X X X</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>