Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Issue 2726103003: [css-grid] Implement transferred size part of Implied Minimum Size (Closed)

Created:
3 years, 9 months ago by Manuel Rego
Modified:
3 years, 9 months ago
CC:
chromium-reviews, jfernandez, szager+layoutwatch_chromium.org, zoltan1, svillar, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, Manuel Rego, leviw+renderwatch, jchaffraix+rendering, blink-reviews, eae+blinkwatch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[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} Committed: https://chromium.googlesource.com/chromium/src/+/ab779b340b6d4170920e1cf2ce50e67f64d67fac

Patch Set 1 #

Total comments: 2

Patch Set 2 : Swap order in condition #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -4 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-automatic-minimum-intrinsic-aspect-ratio.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.cpp View 1 1 chunk +11 lines, -1 line 0 comments Download

Messages

Total messages: 14 (7 generated)
Manuel Rego
3 years, 9 months ago (2017-03-02 09:21:52 UTC) #4
jfernandez
lgtm
3 years, 9 months ago (2017-03-02 11:30:15 UTC) #5
svillar
lgtm too https://codereview.chromium.org/2726103003/diff/1/third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.cpp File third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.cpp (right): https://codereview.chromium.org/2726103003/diff/1/third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.cpp#newcode380 third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.cpp:380: if (childSize.isAuto() && child.isLayoutReplaced()) { You might ...
3 years, 9 months ago (2017-03-02 12:00:02 UTC) #6
Manuel Rego
Thanks for the quick reviews! https://codereview.chromium.org/2726103003/diff/1/third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.cpp File third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.cpp (right): https://codereview.chromium.org/2726103003/diff/1/third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.cpp#newcode380 third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.cpp:380: if (childSize.isAuto() && child.isLayoutReplaced()) ...
3 years, 9 months ago (2017-03-02 12:10:19 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2726103003/20001
3 years, 9 months ago (2017-03-02 12:10:40 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/ab779b340b6d4170920e1cf2ce50e67f64d67fac
3 years, 9 months ago (2017-03-02 13:52:24 UTC) #13
cbiesinger
3 years, 9 months ago (2017-03-02 19:30:11 UTC) #14
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698