- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Fri, 04 Aug 2017 13:12:47 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `Automatic Minimum Size for grid items should not min against content size`, and agreed to the following resolutions: * `RESOLVED: is either it's defined size, content size, or transfer size` <details><summary>The full IRC log of that discussion</summary> <dauwhe> topic: Automatic Minimum Size for grid items should not min against content size<br> <astearns> github: https://github.com/w3c/csswg-drafts/issues/1149<br> <dauwhe> TabAtkins: in flex we do to some effort to find minimum size<br> <dauwhe> ... if it's image we try to figure out what information is important<br> <dauwhe> ... this is useful because flex uses this to size the image<br> <dauwhe> ... grid uses the info to size the track, and then lets the image size to the track<br> <dauwhe> ... the big difference is say you have a specified size of 100px and intrinsic size is 50px<br> <dauwhe> ... we use 50px in flex<br> <dauwhe> ... grid doesn't have to worry about shrinking<br> <dauwhe> ... "So, we think the right fix is to just change Grid's automatic minimum size to be the specified size if it exists, else the transferred size if it exists, else the content size."<br> <dauwhe> ... this better matches author intent for automatic minimum sizing of images<br> <dauwhe> (tab draws on whiteboard)<br> <dauwhe> ... image is 50px<br> <dauwhe> ... put in grid container, set to 100px<br> <dauwhe> ... in flex, minimum value is 50, it's allowed to shrink to that<br> <dauwhe> ... in grid, we prefer to say let's stick with 100, 'cause the author said so<br> <dauwhe> ... and avoid risk of overflow<br> <dauwhe> Rossen: additional piece: if you open the test case<br> <dauwhe> https://test.csswg.org/suites/css-grid-1_dev/nightly-unstable/html/grid-minimum-size-grid-items-007.ht<br> <dauwhe> TabAtkins: sets itself to 100px, but grid width is 10 x 10<br> <dauwhe> ... if we went by previous algo, track would be 50px<br> <dauwhe> ... maintaining aspect ratio is important<br> <dauwhe> astearns: any other comments?<br> <dauwhe> Rossen: this one has height set<br> <dauwhe> ... current spec says minimum of instrinsic and transfer?<br> <dauwhe> fantasai: use specified if you have it, content if you don't<br> <dauwhe> TabAtkins: edge does it<br> <dauwhe> ... any objections?<br> <dauwhe> astearns: hearing no objection,<br> <dauwhe> RESOLVED: is either it's defined size, content size, or transfer size<br> <dauwhe> (do what 1149 says)<br> <dauwhe> fantasai: there was one about stretching tracks<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1149#issuecomment-320245274 using your GitHub account
Received on Friday, 4 August 2017 13:12:48 UTC