3 <title>CSS Containment Test: Size containment on grid container with explicit non-intrinsically sized tracks (and gaps)
</title>
4 <link rel=
"author" title=
"Florian Rivoal" href=
"https://florian.rivoal.net/">
5 <link rel=
"help" href=
"https://drafts.csswg.org/css-contain-1/#containment-size">
6 <meta name=assert
content=
"grid-gap, grid-template-columns, and grid-template-rows do affect the size of the grid, even with size containment">
7 <link rel=
"match" href=
"../reference/ref-filled-green-100px-square.xht">
27 grid-template-columns: auto
80px; /*
0 +
20 +
80 =
100 */
28 grid-template-rows:
40px
40px; /*
40 +
20 +
40 =
100 */
33 <p>Test passes if there is a filled green square and
<strong>no red
</strong>.
</p>
35 <div id=test
> </div>
38 The , auto sized column, and 800px font size
39 are to make the test fail in browsers
40 that do not implement contain:size at all,
41 by making the box non square.