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/grid-gap-012.html - WPT Dashboard Interop Dashboard
<!DOCTYPE HTML>
<meta charset="utf-8">
<title>CSS Grid Test: Subgrids with column gap larger than 2x the track size</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="match" href="grid-gap-012-ref.html">
<div style="display: grid; grid-template-columns: 100px 100px 100px; width: 300px">
<div style="display: grid; grid-template-columns: subgrid; gap: 250px; grid-column: span 3">
<div style="width: 100px; height: 100px; background-color: blue; grid-column: 2"></div>
<div style="width: 100px; height: 100px; background-color: blue; grid-column: 3"></div>
</div>
</div>