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

Issue 320093002: [CSS Grid Layout] Named grid line span not allowed for automatic positions (Closed)

Created:
6 years, 6 months ago by Manuel Rego
Modified:
6 years, 6 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, jfernandez, leviw+renderwatch, pdr., Manuel Rego, rune+blink, svillar, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@span-named-grid-line-to-upload
Visibility:
Public.

Description

[CSS Grid Layout] Named grid line span not allowed for automatic positions From the grid layout spec we can extract the following sentence: "If the grid item has an automatic position and a grid span for a named line in a given dimension, instead treat the grid span as one." The main reason is that as you don't know where the item is going to be placed (because of it's auto-positioned), spanning to a particular line makes no sense. Updated GridResolvedPosition code to include this restriction when resolving positions. Adapted auto-placement algorithm implementation in RenderGrid as now it's possible to pass row and column spans to GridIterator::nextEmptyGridArea() simplifying the code. Updated layout test to the new behavior. BUG=353789 TEST=fast/css-grid-layout/grid-item-auto-placement-automatic-span.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176295

Patch Set 1 #

Total comments: 2

Patch Set 2 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -76 lines) Patch
M LayoutTests/fast/css-grid-layout/grid-item-auto-placement-automatic-span.html View 1 3 chunks +22 lines, -24 lines 0 comments Download
M Source/core/rendering/RenderGrid.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderGrid.cpp View 1 5 chunks +37 lines, -50 lines 0 comments Download
M Source/core/rendering/style/GridCoordinate.h View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/rendering/style/GridResolvedPosition.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Manuel Rego
This week I realized about a sentence in the CSS Grid Layout spec that removes ...
6 years, 6 months ago (2014-06-06 21:19:29 UTC) #1
Julien - ping for review
lgtm https://codereview.chromium.org/320093002/diff/1/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/320093002/diff/1/Source/core/rendering/RenderGrid.cpp#newcode912 Source/core/rendering/RenderGrid.cpp:912: GridSpan majorAxisPositions = GridResolvedPosition::resolveGridPositionsFromAutoPlacementPosition(*style(), *gridItem, autoPlacementMajorAxisDirection(), GridResolvedPosition(0)); This ...
6 years, 6 months ago (2014-06-16 20:31:35 UTC) #2
Manuel Rego
Thanks for the review. https://codereview.chromium.org/320093002/diff/1/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/320093002/diff/1/Source/core/rendering/RenderGrid.cpp#newcode912 Source/core/rendering/RenderGrid.cpp:912: GridSpan majorAxisPositions = GridResolvedPosition::resolveGridPositionsFromAutoPlacementPosition(*style(), *gridItem, ...
6 years, 6 months ago (2014-06-16 21:15:34 UTC) #3
Manuel Rego
The CQ bit was checked by rego@igalia.com
6 years, 6 months ago (2014-06-16 21:15:39 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rego@igalia.com/320093002/20001
6 years, 6 months ago (2014-06-16 21:16:39 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-16 23:38:58 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/12179)
6 years, 6 months ago (2014-06-16 23:38:59 UTC) #7
Manuel Rego
The CQ bit was checked by rego@igalia.com
6 years, 6 months ago (2014-06-17 07:15:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rego@igalia.com/320093002/20001
6 years, 6 months ago (2014-06-17 07:16:24 UTC) #9
commit-bot: I haz the power
6 years, 6 months ago (2014-06-17 08:08:30 UTC) #10
Message was sent while issue was closed.
Change committed as 176295

Powered by Google App Engine
This is Rietveld 408576698