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

Issue 1031853002: [CSS Grid Layout] Content Distribution support for grid. (Closed)

Created:
5 years, 9 months ago by jfernandez
Modified:
5 years, 8 months ago
CC:
blink-reviews, blink-reviews-rendering, Dominik Röttsches, 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] Content Distirbution support for grid. Content Alignment is performed using the align-content and justify-content CSS properties, however, the <content-distribution> values were not allowed for Grid Layout until the last version of the spec. The <content-distribution> values also consider the grid tracks as the alignment subject but instead of moving them along the grid container's free available space, it distribute such space around and/or between the tracks. BUG=376823, 249451 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194034

Patch Set 1 #

Patch Set 2 : Improved test coverage. #

Total comments: 6

Patch Set 3 : Applied suggested changes. #

Patch Set 4 : Missing layout test expectations file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2718 lines, -442 lines) Patch
M LayoutTests/fast/css-grid-layout/grid-align-content.html View 1 2 chunks +0 lines, -138 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-align-content-distribution.html View 1 1 chunk +357 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-align-content-distribution-expected.txt View 1 2 1 chunk +74 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-align-content-distribution-vertical-lr.html View 1 1 chunk +357 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-align-content-distribution-vertical-lr-expected.txt View 1 2 1 chunk +74 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-align-content-distribution-vertical-rl.html View 1 1 chunk +357 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-align-content-distribution-vertical-rl-expected.txt View 1 2 3 1 chunk +74 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-align-content-expected.txt View 1 1 chunk +0 lines, -24 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-align-content-vertical-lr.html View 1 1 chunk +0 lines, -17 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-align-content-vertical-rl.html View 1 1 chunk +0 lines, -16 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-content-alignment-overflow.html View 1 2 chunks +5 lines, -5 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-justify-content.html View 1 2 chunks +0 lines, -138 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-justify-content-distribution.html View 1 1 chunk +358 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-justify-content-distribution-expected.txt View 1 1 chunk +74 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-justify-content-distribution-vertical-lr.html View 1 1 chunk +357 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-justify-content-distribution-vertical-lr-expected.txt View 1 1 chunk +74 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-justify-content-distribution-vertical-rl.html View 1 1 chunk +358 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-justify-content-distribution-vertical-rl-expected.txt View 1 1 chunk +74 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-justify-content-expected.txt View 1 1 chunk +0 lines, -24 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-justify-content-vertical-lr.html View 1 1 chunk +0 lines, -16 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-justify-content-vertical-rl.html View 1 1 chunk +0 lines, -16 lines 0 comments Download
M Source/core/layout/LayoutGrid.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/layout/LayoutGrid.cpp View 1 2 8 chunks +122 lines, -45 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
jfernandez
5 years, 8 months ago (2015-03-31 15:51:29 UTC) #2
Julien - ping for review
https://codereview.chromium.org/1031853002/diff/20001/Source/core/layout/LayoutGrid.cpp File Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/1031853002/diff/20001/Source/core/layout/LayoutGrid.cpp#newcode454 Source/core/layout/LayoutGrid.cpp:454: tracksToStretch[i++] = tracks.data() + trackIndex; Alternatively: tracksToStretch[tracksToStretch.size() - 1] ...
5 years, 8 months ago (2015-04-15 14:14:00 UTC) #4
dsinclair
https://codereview.chromium.org/1031853002/diff/20001/Source/core/layout/LayoutGrid.cpp File Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/1031853002/diff/20001/Source/core/layout/LayoutGrid.cpp#newcode441 Source/core/layout/LayoutGrid.cpp:441: bool needToStretch = flexibleSizedTracksIndex.isEmpty() && !sizingData.contentSizedTracksIndex.isEmpty() && ((direction == ...
5 years, 8 months ago (2015-04-15 15:27:13 UTC) #5
jfernandez
New patch for review after applying the suggested changes. https://codereview.chromium.org/1031853002/diff/20001/Source/core/layout/LayoutGrid.cpp File Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/1031853002/diff/20001/Source/core/layout/LayoutGrid.cpp#newcode441 Source/core/layout/LayoutGrid.cpp:441: ...
5 years, 8 months ago (2015-04-16 17:03:38 UTC) #6
dsinclair
lgtm
5 years, 8 months ago (2015-04-16 17:12:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1031853002/40001
5 years, 8 months ago (2015-04-20 09:03:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1031853002/60001
5 years, 8 months ago (2015-04-20 11:25:20 UTC) #12
commit-bot: I haz the power
5 years, 8 months ago (2015-04-20 16:41:46 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194034

Powered by Google App Engine
This is Rietveld 408576698