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

Issue 1607463004: [css-grid] Allow to place positioned grid items on the padding (Closed)

Created:
4 years, 11 months ago by Manuel Rego
Modified:
4 years, 11 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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-grid] Allow to place positioned grid items on the padding According to the following discussion on the CSS WG mailing list, we should be able to place positioned grid items on the padding directly: https://lists.w3.org/Archives/Public/www-style/2015Nov/0070.html This means that a positioned grid item can be placed on the padding itself. The "auto" value resolves to the padding edges (0th and -0th lines). So if a positioned item is placed with: grid-column: auto / 1; it'd be placed on the padding, from line 0th to 1st line. BUG=273898 TEST=fast/css-grid-layout/grid-positioned-items-padding.html Committed: https://crrev.com/ee130ce3012b9e82d4182aec50c1944ff9681e1b Cr-Commit-Position: refs/heads/master@{#370127}

Patch Set 1 #

Patch Set 2 : Fix test #

Total comments: 9

Patch Set 3 : Applying suggested changes #

Patch Set 4 : Forgot to remove <html> from test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -24 lines) Patch
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-implicit-grid.html View 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-implicit-grid-expected.txt View 1 chunk +16 lines, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-padding.html View 1 2 3 1 chunk +119 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 2 2 chunks +22 lines, -21 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
Manuel Rego
4 years, 11 months ago (2016-01-18 17:41:55 UTC) #3
jfernandez
https://codereview.chromium.org/1607463004/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/1607463004/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1517 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1517: LayoutUnit end = endIsAuto ? (direction == ForColumns) ? ...
4 years, 11 months ago (2016-01-18 17:57:42 UTC) #4
svillar
lgtm https://codereview.chromium.org/1607463004/diff/20001/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-padding.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-padding.html (right): https://codereview.chromium.org/1607463004/diff/20001/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-padding.html#newcode2 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-padding.html:2: <html> Don't need this, actually there is no ...
4 years, 11 months ago (2016-01-19 12:04:51 UTC) #5
svillar
BTW let's change the description of the bug. Let's include a brief explanation that describes ...
4 years, 11 months ago (2016-01-19 12:08:48 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1607463004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1607463004/40001
4 years, 11 months ago (2016-01-19 15:11:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1607463004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1607463004/60001
4 years, 11 months ago (2016-01-19 15:49:52 UTC) #14
Manuel Rego
Thanks for the reviews. Applied suggested changes. https://codereview.chromium.org/1607463004/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/1607463004/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1496 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1496: int smallestStart ...
4 years, 11 months ago (2016-01-19 15:52:25 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-19 16:55:23 UTC) #17
commit-bot: I haz the power
4 years, 11 months ago (2016-01-19 16:56:20 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ee130ce3012b9e82d4182aec50c1944ff9681e1b
Cr-Commit-Position: refs/heads/master@{#370127}

Powered by Google App Engine
This is Rietveld 408576698