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/dynamic-min-content-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<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; height: 100px; width: min-content; background: green;">
<div style="display: grid; grid-template-columns: subgrid;">
<div id="target" style="width: 50px;"></div>
</div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.width = '100px';
</script>