When using 'auto' on grid-template-{rows-columns} properties, the vertical margin should be taken into account when computing the item's logical height, so the grid container's height is adapted accordingly.
Created attachment 228095 [details] Test cases to reproduce the issue.
Created attachment 228096 [details] Screenshot of the issue.
Created attachment 228097 [details] Patch
Comment on attachment 228097 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=228097&action=review > LayoutTests/fast/css-grid-layout/grid-item-margin-auto-columns-rows-expected.txt:17 > +PASS > +PASS > +PASS > +PASS > +PASS > +PASS > +PASS > +PASS > +PASS > +PASS > +PASS > +PASS > +PASS > +PASS > +PASS > +PASS I’m not really happy with these check-layout tests. Could we make this a reference test instead perhaps?
Comment on attachment 228097 [details] Patch Clearing flags on attachment: 228097 Committed r166450: <http://trac.webkit.org/changeset/166450>
All reviewed patches have been landed. Closing bug.
(In reply to comment #4) > (From update of attachment 228097 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=228097&action=review > > > LayoutTests/fast/css-grid-layout/grid-item-margin-auto-columns-rows-expected.txt:17 > > +PASS > > +PASS > > +PASS > > +PASS > > +PASS > > +PASS > > +PASS > > +PASS > > +PASS > > +PASS > > +PASS > > +PASS > > +PASS > > +PASS > > +PASS > > +PASS > > I’m not really happy with these check-layout tests. Could we make this a reference test instead perhaps? sure, actually I agree with your point. I've filed bug #130935 to do not forget.