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

Issue 2421593002: [css-grid] Constrain by min-height on auto-repeat computation (Closed)

Created:
4 years, 2 months ago by svillar
Modified:
4 years, 2 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] Constrain by min-height on auto-repeat computation The max-height (if definite) is used to compute the number of auto repeat rows whenever the height is indefinite. We were using the min-height only in case both values were indefinite. However, it's reasonable to assume that the min-height trumps the used value of height/max-height like it always does, per CSS 2.2. Note that the number of rows still needs to fit within that size even if using min-height, because we're just using min-height to compute the used value of the height property. If both height and max-height are indefinite we keep doing the same, i.e., compute the minimum number of rows that fulfill min-height (if definite). BUG=648814 Committed: https://crrev.com/8f030c73af4b8b82752c373cc98ef60a7e87a780 Cr-Commit-Position: refs/heads/master@{#425327}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -7 lines) Patch
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fill-rows.html View 2 chunks +15 lines, -1 line 2 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-indefinite-size-auto-repeat-crash.html View 1 chunk +80 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-indefinite-size-auto-repeat-crash-expected.txt View 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 chunk +5 lines, -6 lines 2 comments Download

Messages

Total messages: 11 (3 generated)
svillar
Adding reviewers
4 years, 2 months ago (2016-10-13 19:11:19 UTC) #2
jfernandez
https://codereview.chromium.org/2421593002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2421593002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1798 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1798: } Why the availableLogicalHeightForPercentageComputation value, if valid, does not ...
4 years, 2 months ago (2016-10-13 21:21:08 UTC) #3
Manuel Rego
The patch LGTM but let's wait for the answer to @jfernandez question. https://codereview.chromium.org/2421593002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fill-rows.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fill-rows.html ...
4 years, 2 months ago (2016-10-14 08:10:20 UTC) #4
svillar
Thanks for both reviews. https://codereview.chromium.org/2421593002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fill-rows.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fill-rows.html (right): https://codereview.chromium.org/2421593002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fill-rows.html#newcode69 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fill-rows.html:69: </div> On 2016/10/14 08:10:19, Manuel ...
4 years, 2 months ago (2016-10-14 12:46:37 UTC) #5
jfernandez
Thanks for the reply. The patch LGTM.
4 years, 2 months ago (2016-10-14 13:30:15 UTC) #6
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/2421593002/1
4 years, 2 months ago (2016-10-14 13:38:42 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-14 15:25:20 UTC) #9
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 15:27:17 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/8f030c73af4b8b82752c373cc98ef60a7e87a780
Cr-Commit-Position: refs/heads/master@{#425327}

Powered by Google App Engine
This is Rietveld 408576698