[css-grid] Implement transferred size part of Implied Minimum Size
This part of the spec was not implemented yet
as it was still being discussed in the CSS WG.
The text from the spec [1]:
"However, if the box has an aspect ratio and no specified size,
its automatic minimum size is the smaller of its content size
and its transferred size."
This patch modifies how we compute the automatic minimum size
for replaced elements, in order to use the transferred size
or the content size when required.
BUG=555027
TEST=external/csswg-test/css-grid-1/grid-items/grid-minimum-size-grid-items-007.xht
TEST=external/csswg-test/css-grid-1/grid-items/grid-minimum-size-grid-items-009.xht
[1] https://drafts.csswg.org/css-flexbox-1/#automatic-minimum-size
Review-Url: https://codereview.chromium.org/2726103003
Cr-Commit-Position: refs/heads/master@{#454248}
3 files changed