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/grid-lanes/subgrid/grid-subgridded-to-grid-lanes/dynamic-min-content-003.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Grid Lanes Test: Subgridded item dynamically changing its width updates min-content through nested subgrids</title>
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<link rel="match" href="../../../../reference/ref-filled-green-100px-square.xht">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="display: grid-lanes; height: 100px; width: min-content; background: green;">
<div style="display: grid; grid-template-rows: subgrid; writing-mode: vertical-rl;">
<div style="display: grid; grid-template-columns: subgrid; writing-mode: horizontal-tb;">
<div id="target" style="width: 50px;">
</div>
</div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.width = '100px';
</script>