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

Issue 1145183003: [CSS Grid Layout] Clear stretched height when conditions don't allow it. (Closed)

Created:
5 years, 7 months ago by jfernandez
Modified:
5 years, 6 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, jfernandez, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, Manuel Rego, svillar, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[CSS Grid Layout] Clear stretched height when conditions don't allow it. Box Alignment spec states that stretch is only possible when height is 'auto' and no 'auto' margins are used. It might be the case that style changes so that stretching is not allowed, hence we need to detect it and clear the override height the stretching algorithm previously set. The new layout triggered by the style change will then set grid item's height according to the new style rules. BUG=490043 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196543

Patch Set 1 #

Total comments: 6

Patch Set 2 : Applied suggested changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -16 lines) Patch
A LayoutTests/fast/css-grid-layout/grid-items-should-not-be-stretched-when-height-or-margin-change.html View 1 1 chunk +37 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-items-should-not-be-stretched-when-height-or-margin-change-expected.txt View 1 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/layout/LayoutGrid.cpp View 1 1 chunk +16 lines, -16 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
jfernandez
5 years, 7 months ago (2015-05-20 14:42:11 UTC) #2
Julien - ping for review
lgtm https://codereview.chromium.org/1145183003/diff/1/LayoutTests/fast/css-grid-layout/grid-items-should-not-be-stretched-when-height-or-margin-change.html File LayoutTests/fast/css-grid-layout/grid-items-should-not-be-stretched-when-height-or-margin-change.html (right): https://codereview.chromium.org/1145183003/diff/1/LayoutTests/fast/css-grid-layout/grid-items-should-not-be-stretched-when-height-or-margin-change.html#newcode13 LayoutTests/fast/css-grid-layout/grid-items-should-not-be-stretched-when-height-or-margin-change.html:13: <p>The grids bellow had initially 'stretched' items, but ...
5 years, 6 months ago (2015-06-03 21:33:13 UTC) #3
jfernandez
Applied suggested changed and trying CQ for landing. https://codereview.chromium.org/1145183003/diff/1/LayoutTests/fast/css-grid-layout/grid-items-should-not-be-stretched-when-height-or-margin-change.html File LayoutTests/fast/css-grid-layout/grid-items-should-not-be-stretched-when-height-or-margin-change.html (right): https://codereview.chromium.org/1145183003/diff/1/LayoutTests/fast/css-grid-layout/grid-items-should-not-be-stretched-when-height-or-margin-change.html#newcode13 LayoutTests/fast/css-grid-layout/grid-items-should-not-be-stretched-when-height-or-margin-change.html:13: <p>The ...
5 years, 6 months ago (2015-06-05 00:05:30 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1145183003/20001
5 years, 6 months ago (2015-06-05 00:06:13 UTC) #7
commit-bot: I haz the power
5 years, 6 months ago (2015-06-05 01:34:17 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196543

Powered by Google App Engine
This is Rietveld 408576698