Closed Bug 1318880 Opened 8 years ago Closed 8 years ago

grid-template-rows/grid-template-columns needs updates

Categories

(Developer Documentation Graveyard :: CSS, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: MatsPalmgren_bugz, Assigned: sebo)

References

()

Details

https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows
https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns

The documentation for minmax() says:
As a maximum, a <flex> value sets the track’s flex factor. As a minimum, it is treated as zero (or minimal content, if the grid container is sized under a minimal content constraint).

The last sentence is wrong - minmax(<flex>, ...) is rejected in the parser
as an invalid value.  The formal syntax excludes that combination:
https://drafts.csswg.org/css-grid/#track-list

The Note there says:
"auto track sizes (and only auto track sizes) can be streched by the align-content and justify-content properties."
This is slightly misleading.  All tracks with an 'auto' max-sizing function
can be stretched, e.g. minmax(10px, auto) etc.  Also, typo: streched.
Assigned to :sebo per bug 1281320 comment 12
Assignee: nobody → sebastianzartner
Status: NEW → ASSIGNED
Thank you for noting this, Mats.

The description is based on a former version of the CSS Grid spec. and the description of minmax() has obviously changed in the meantime. I've updated the two pages now and fixed typo.

The typo was actually a copy & paste error from the spec., for which I now created https://github.com/w3c/csswg-drafts/issues/747.

Sebastian
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.