[Webkit-unassigned] [Bug 180283] New: [css-grid] Automatic minimum size is not clamped if min track sizing function is auto
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Dec 1 14:36:19 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=180283
Bug ID: 180283
Summary: [css-grid] Automatic minimum size is not clamped if
min track sizing function is auto
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jfernandez at igalia.com
CC: bfulgham at webkit.org, simon.fraser at apple.com,
zalan at apple.com
Created attachment 328159
--> https://bugs.webkit.org/attachment.cgi?id=328159&action=review
Test case to reproduce the bug
The spec is quite clear regarding this (https://drafts.csswg.org/css-grid/#min-size-auto):
"However, if the grid item spans only grid tracks that have a fixed max track sizing function, its specified size and content size in that dimension (and the input to the transferred size in the other dimension) are further clamped to less than or equal to the stretch fit the grid area’s size (so as to prevent the automatic minimum size from forcing overflow of its fixed-size grid area)."
It says that if the max track sizing function is fixed, it should clamp the automatic minimum size.
In the attached example we have a grid container with:
grid-template-columns: minmax(auto, 0px);
So the automatic minimum size of the item needs to be clamped to 0px.
And the final size of the track should be 0px.
This is basically what this test wrongly checks:
http://w3c-test.org/css/css-grid/grid-items/grid-minimum-size-grid-items-017.html
Firefox does this right.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171201/1b790ca3/attachment.html>
More information about the webkit-unassigned
mailing list