Skip to content
Skip the list of specifications

grid-template

same effect as Chrome: 12 of 12 examples match Chrome

css-grid-2

The declaration changes our page the way it changes Chrome’s. What still differs between the two renderings was there before the declaration too, on the same page without it (mostly the fonts): no larger with it, or in the same places and no stronger.

What the specification says

Initial valuenone
Applies togrid containers
Inheritedsee individual properties
Percentagessee individual properties
Computed valuesee individual properties
Syntaxnone | [ <'grid-template-rows'> / <'grid-template-columns'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?

The definition in css-grid-2

The measurements

12 examples, all 12 match Chrome. Each is one declaration on a small page, drawn by Chrome and by our engine. Drag on a picture to move the line between them.

grid-template:"X", grid-template:[a] "X", grid-template:"X" minmax(60px, 120px), grid-template:"X" 2fr, grid-template:"X" [a], grid-template:"X" / 2fr

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome0
The same, on the page without the declaration0
Largest difference on one colour channel0 of 255
The same, on the page without the declaration0 of 255

Identical to Chrome.

The example’s page

grid-template:80px / none, grid-template:80px / 2fr, grid-template:80px / subgrid, grid-template:80px / subgrid [a], grid-template:"X" 80px

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome0
The same, on the page without the declaration0
Largest difference on one colour channel0 of 255
The same, on the page without the declaration0 of 255

Identical to Chrome.

The example’s page

grid-template:none

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome0
The same, on the page without the declaration0
Largest difference on one colour channel0 of 255
The same, on the page without the declaration0 of 255

Identical to Chrome.

The example’s page

Which values were measured

A match on one example means a match at the value tried. The property’s grammar has 39 branches, and 12 of them carry a measurement. At most 12 examples are published per property, so a branch past that is left out by our choice.

ValueMeasured
80px / 80pxnot measured
none / 80pxnot measured
[a] 80px / 80pxnot measured
minmax(60px, 120px) / 80pxnot measured
fit-content(80px) / 80pxnot measured
2fr / 80pxnot measured
min-content / 80pxnot measured
max-content / 80pxnot measured
80px [a] / 80pxnot measured
subgrid / 80pxnot measured
subgrid [a] / 80pxnot measured
80px / none
same effect as Chrome
80px / [a] 80pxnot measured
80px / minmax(60px, 120px)not measured
80px / fit-content(80px)not measured
80px / 2fr
same effect as Chrome
80px / min-contentnot measured
80px / max-contentnot measured
80px / 80px [a]not measured
80px / subgrid
same effect as Chrome
80px / subgrid [a]
same effect as Chrome
"X"
same effect as Chrome
[a] "X"
same effect as Chrome
"X" 80px
same effect as Chrome
"X" minmax(60px, 120px)
same effect as Chrome
"X" fit-content(80px)not measured
"X" 2fr
same effect as Chrome
"X" min-contentnot measured
"X" max-contentnot measured
"X" [a]
same effect as Chrome
"X" / 80pxnot measured
"X" / [a] 80pxnot measured
"X" / minmax(60px, 120px)not measured
"X" / fit-content(80px)not measured
"X" / 2fr
same effect as Chrome
"X" / min-contentnot measured
"X" / max-contentnot measured
"X" / 80px [a]not measured
none
same effect as Chrome

Measured against Chrome 148.0.7778.96 on 5 November 2026, with up to 40 candidate values tried per property. How it was measured