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

Issue 2722613003: [css-grid] "normal" alignment is "start" for replaced elements (Closed)

Created:
3 years, 9 months ago by Manuel Rego
Modified:
3 years, 9 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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-grid] "normal" alignment is "start" for replaced elements "normal" alignment used to be "stretch" for all the elements, however the CSS Grid Layout spec has been updated to change this behavior for replaced elements: https://github.com/w3c/csswg-drafts/issues/523 A few tests need to be updated due to this change. We also take advantage to make fast/css-grid-layout/grid-align-stretching-replaced-items.html a testharness.js test so we can get rid of the expected file. BUG=666961 TEST=external/csswg-test/css-grid-1/grid-items/grid-items-sizing-alignment-001.html Review-Url: https://codereview.chromium.org/2722613003 Cr-Commit-Position: refs/heads/master@{#454133} Committed: https://chromium.googlesource.com/chromium/src/+/fad39c71033eea490d8437ca186529c8e87125c2

Patch Set 1 #

Total comments: 9

Patch Set 2 : New version #

Total comments: 7

Patch Set 3 : Rebased patch #

Patch Set 4 : Applied suggested changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -31 lines) Patch
A third_party/WebKit/LayoutTests/external/csswg-test/css-grid-1/grid-items/grid-items-sizing-alignment-001.html View 1 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/csswg-test/css-grid-1/grid-items/grid-items-sizing-alignment-001-expected.html View 1 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/csswg-test/css-grid-1/grid-items/support/50x50-green.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-stretching-replaced-items.html View 1 2 chunks +19 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-stretching-replaced-items-expected.txt View 1 chunk +0 lines, -18 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/resources/grid-alignment.css View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFullScreen.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 chunk +11 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutReplaced.h View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
Manuel Rego
The new test has been sent directly to csswg-test: https://github.com/w3c/csswg-test/pull/1219 It should be reviewed there ...
3 years, 9 months ago (2017-02-28 10:14:37 UTC) #2
jfernandez
https://codereview.chromium.org/2722613003/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-stretching-replaced-items.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-stretching-replaced-items.html (right): https://codereview.chromium.org/2722613003/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-stretching-replaced-items.html#newcode28 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-stretching-replaced-items.html:28: <div class="grid"> This case is based on the fact ...
3 years, 9 months ago (2017-03-01 12:46:49 UTC) #4
Manuel Rego
Thanks for the review, uploaded a new version PTAL. https://codereview.chromium.org/2722613003/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-stretching-replaced-items.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-stretching-replaced-items.html (right): https://codereview.chromium.org/2722613003/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-stretching-replaced-items.html#newcode28 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-stretching-replaced-items.html:28: ...
3 years, 9 months ago (2017-03-01 17:57:07 UTC) #5
jfernandez
lgtm https://codereview.chromium.org/2722613003/diff/20001/third_party/WebKit/LayoutTests/fast/css-grid-layout/resources/grid-alignment.css File third_party/WebKit/LayoutTests/fast/css-grid-layout/resources/grid-alignment.css (right): https://codereview.chromium.org/2722613003/diff/20001/third_party/WebKit/LayoutTests/fast/css-grid-layout/resources/grid-alignment.css#newcode96 third_party/WebKit/LayoutTests/fast/css-grid-layout/resources/grid-alignment.css:96: .itemsStretch { I guess this should be itemsNormal, ...
3 years, 9 months ago (2017-03-01 22:58:54 UTC) #6
Manuel Rego
Thank you very much for the review! https://codereview.chromium.org/2722613003/diff/20001/third_party/WebKit/LayoutTests/fast/css-grid-layout/resources/grid-alignment.css File third_party/WebKit/LayoutTests/fast/css-grid-layout/resources/grid-alignment.css (right): https://codereview.chromium.org/2722613003/diff/20001/third_party/WebKit/LayoutTests/fast/css-grid-layout/resources/grid-alignment.css#newcode96 third_party/WebKit/LayoutTests/fast/css-grid-layout/resources/grid-alignment.css:96: .itemsStretch { ...
3 years, 9 months ago (2017-03-01 23:23:30 UTC) #7
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/2722613003/60001
3 years, 9 months ago (2017-03-01 23:24:15 UTC) #10
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 01:20:56 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/fad39c71033eea490d8437ca1865...

Powered by Google App Engine
This is Rietveld 408576698