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

Issue 2335673002: [css-grid] New syntax for the 'grid' shorthand (Closed)

Created:
4 years, 3 months ago by jfernandez
Modified:
4 years, 3 months ago
CC:
chromium-reviews, jfernandez, svillar, blink-reviews-css, Manuel Rego, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-grid] New syntax for the 'grid' shorthand The spec has changed the syntax of the 'grid' shorthand. https://drafts.csswg.org/css-grid/#grid-shorthand In order to implement the new syntax a new keyword has been added (auto-flow) and the already defined tests have been changed to follow the new syntax. BUG=618971 Committed: https://crrev.com/04b7b5477ccf1b873ca0351b6923ba1007bf294f Cr-Commit-Position: refs/heads/master@{#419797}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Applied suggested changes. #

Total comments: 10

Patch Set 3 : Fixed bug in the parsing logic. #

Total comments: 11

Patch Set 4 : Applied suggested changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+366 lines, -87 lines) Patch
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html View 1 2 4 chunks +117 lines, -27 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt View 1 2 3 4 chunks +191 lines, -41 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValueKeywords.in View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 2 chunks +57 lines, -19 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
jfernandez
4 years, 3 months ago (2016-09-12 14:13:15 UTC) #3
Manuel Rego
Nice that we're getting really close to the current spec. https://codereview.chromium.org/2335673002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html (right): https://codereview.chromium.org/2335673002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html#newcode32 ...
4 years, 3 months ago (2016-09-12 20:48:18 UTC) #4
jfernandez
https://codereview.chromium.org/2335673002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html (right): https://codereview.chromium.org/2335673002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html#newcode32 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html:32: } On 2016/09/12 20:48:17, Manuel Rego wrote: > Nit: ...
4 years, 3 months ago (2016-09-13 12:50:30 UTC) #6
Manuel Rego
The patch LGTM, but I'd prefer someone with more experience on the parsing code to ...
4 years, 3 months ago (2016-09-14 21:14:35 UTC) #7
Timothy Loh
I think this will interpret "dense 10px / auto-flow" as "10px / auto-flow" since we ...
4 years, 3 months ago (2016-09-16 05:40:46 UTC) #8
jfernandez
Thanks for both reviews. It's true that the code may have some bug, allowing "dense ...
4 years, 3 months ago (2016-09-16 09:48:50 UTC) #9
Timothy Loh
lgtm https://codereview.chromium.org/2335673002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/2335673002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode4533 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:4533: if (!((templateRows = consumeGridTemplatesRowsOrColumns(m_range, m_context.mode())) && consumeSlashIncludingWhitespace(m_range) && ...
4 years, 3 months ago (2016-09-19 03:48:18 UTC) #10
svillar
lgtm from the functional POV. As mentioned inline I'd prefer to have a different kind ...
4 years, 3 months ago (2016-09-19 15:04:12 UTC) #11
jfernandez
https://codereview.chromium.org/2335673002/diff/40001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/2335673002/diff/40001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode4486 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:4486: } On 2016/09/19 15:04:12, svillar wrote: > Although your ...
4 years, 3 months ago (2016-09-20 15:25:38 UTC) #12
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/2335673002/60001
4 years, 3 months ago (2016-09-20 15:26:08 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-20 17:08:37 UTC) #17
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 17:10:06 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/04b7b5477ccf1b873ca0351b6923ba1007bf294f
Cr-Commit-Position: refs/heads/master@{#419797}

Powered by Google App Engine
This is Rietveld 408576698