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

Issue 842193004: [css-grid] Handle alignment with orthogonal flows (Closed)

Created:
5 years, 11 months ago by jfernandez
Modified:
4 years, 5 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@orthogonal-flows
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CSS Grid Layout] Handle alignment with orthogonal flows Now that grid sizing and positioning issues wrt orthogonal flows have been clarified in the last spec draft, we can adapt now our alignment logic to work with orthogonal flows. Even though basic alignment would work with orthogonal flows with this patch, we still doesn't allow stretching in that case. I'll provide a patch for that feature since it's a complex logic and better have an isolated change. BUG=556171, 445742, 376823, 249451 Committed: https://crrev.com/af5c2165bff01ba473fe28d31dd2a15d789ef08e Cr-Commit-Position: refs/heads/master@{#406557}

Patch Set 1 #

Patch Set 2 : Implemented logic for self-start/end values. #

Total comments: 10

Patch Set 3 : Applied suggested changes. #

Patch Set 4 : Patch rebased. #

Total comments: 21

Patch Set 5 : Applied suggested changes. #

Patch Set 6 : Removed the new stretching logic, accidentally added in previous patch. #

Patch Set 7 : Added the TODO comment suggested. #

Total comments: 11

Patch Set 8 : Applied additional changes. #

Messages

Total messages: 27 (9 generated)
jfernandez
This issue depends on the one about sizing and positioning in orthogonal flows https://codereview.chromium.org/815833005/
5 years, 11 months ago (2015-01-09 16:52:10 UTC) #2
Julien - ping for review
https://codereview.chromium.org/842193004/diff/20001/LayoutTests/fast/css-grid-layout/grid-item-alignment-with-orthogonal-flows-vertical-lr.html File LayoutTests/fast/css-grid-layout/grid-item-alignment-with-orthogonal-flows-vertical-lr.html (right): https://codereview.chromium.org/842193004/diff/20001/LayoutTests/fast/css-grid-layout/grid-item-alignment-with-orthogonal-flows-vertical-lr.html#newcode60 LayoutTests/fast/css-grid-layout/grid-item-alignment-with-orthogonal-flows-vertical-lr.html:60: <div class="firstRowFirstColumn directionLTR horizontalTB end" data-offset-x="20" data-offset-y="10" data-expected-width="130" data-expected-height="10">XXXXXXXXXXXXX</div> ...
5 years, 11 months ago (2015-01-26 10:42:07 UTC) #3
jfernandez
Added new patch with the suggested changes. https://codereview.chromium.org/842193004/diff/20001/LayoutTests/fast/css-grid-layout/grid-item-alignment-with-orthogonal-flows-vertical-lr.html File LayoutTests/fast/css-grid-layout/grid-item-alignment-with-orthogonal-flows-vertical-lr.html (right): https://codereview.chromium.org/842193004/diff/20001/LayoutTests/fast/css-grid-layout/grid-item-alignment-with-orthogonal-flows-vertical-lr.html#newcode60 LayoutTests/fast/css-grid-layout/grid-item-alignment-with-orthogonal-flows-vertical-lr.html:60: <div class="firstRowFirstColumn ...
5 years, 10 months ago (2015-02-06 23:54:19 UTC) #4
jfernandez
4 years, 6 months ago (2016-06-23 16:04:08 UTC) #8
cbiesinger
https://codereview.chromium.org/842193004/diff/60001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/842193004/diff/60001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1676 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1676: return child.size().height() > containingBlockContentHeight; Don't you need to add ...
4 years, 6 months ago (2016-06-23 18:35:13 UTC) #9
jfernandez
https://codereview.chromium.org/842193004/diff/60001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/842193004/diff/60001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1676 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1676: return child.size().height() > containingBlockContentHeight; On 2016/06/23 18:35:12, cbiesinger wrote: ...
4 years, 6 months ago (2016-06-24 12:59:15 UTC) #10
jfernandez
https://codereview.chromium.org/842193004/diff/60001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/842193004/diff/60001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1676 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1676: return child.size().height() > containingBlockContentHeight; On 2016/06/23 18:35:12, cbiesinger wrote: ...
4 years, 6 months ago (2016-06-24 12:59:16 UTC) #11
svillar
Amazing patch. We're pretty close. https://codereview.chromium.org/842193004/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/842193004/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode1162 third_party/WebKit/Source/core/layout/LayoutBox.cpp:1162: return containingBlock()->isHorizontalWritingMode() ? hasOverrideContainingBlockLogicalHeight() ...
4 years, 5 months ago (2016-07-13 09:00:40 UTC) #12
jfernandez
Submitted a new patch for a new review after applying the suggested changes. https://codereview.chromium.org/842193004/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File ...
4 years, 5 months ago (2016-07-14 09:29:15 UTC) #13
Manuel Rego
https://codereview.chromium.org/842193004/diff/60001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/842193004/diff/60001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1676 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1676: return child.size().height() > containingBlockContentHeight; On 2016/06/24 12:59:15, jfernandez wrote: ...
4 years, 5 months ago (2016-07-14 10:13:31 UTC) #14
jfernandez
Submitted a new patch for review.
4 years, 5 months ago (2016-07-19 10:40:05 UTC) #16
cbiesinger
https://codereview.chromium.org/842193004/diff/120001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/842193004/diff/120001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode1144 third_party/WebKit/Source/core/layout/LayoutBox.cpp:1144: LayoutUnit LayoutBox::overrideContainingBlockContentWidth() const By the way, I wonder if ...
4 years, 5 months ago (2016-07-19 17:39:37 UTC) #17
svillar
Awesome patch. LGTM Consider doing the refactorings I mention. https://codereview.chromium.org/842193004/diff/120001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/842193004/diff/120001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode1144 third_party/WebKit/Source/core/layout/LayoutBox.cpp:1144: ...
4 years, 5 months ago (2016-07-20 09:23:36 UTC) #18
jfernandez
https://codereview.chromium.org/842193004/diff/120001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/842193004/diff/120001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode1144 third_party/WebKit/Source/core/layout/LayoutBox.cpp:1144: LayoutUnit LayoutBox::overrideContainingBlockContentWidth() const On 2016/07/20 09:23:36, svillar wrote: > ...
4 years, 5 months ago (2016-07-20 13:46:14 UTC) #19
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/842193004/140001
4 years, 5 months ago (2016-07-20 13:46:42 UTC) #22
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 5 months ago (2016-07-20 15:07:16 UTC) #24
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-20 15:07:23 UTC) #25
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 15:09:25 UTC) #27
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/af5c2165bff01ba473fe28d31dd2a15d789ef08e
Cr-Commit-Position: refs/heads/master@{#406557}

Powered by Google App Engine
This is Rietveld 408576698