New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 614314 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug

Blocking:
issue 79180



Sign in to add a comment

[css-grid] Disallow repeat() in grid-template shorthand

Project Member Reported by r...@igalia.com, May 24 2016

Issue description


As discussed on www-style, "repeat()" notation shouldn't be allowed
in the ASCII branch of the grid-template shorthand.
See: https://lists.w3.org/Archives/Public/www-style/2016May/0193.html

Hopefully the syntax would be updated soon and avoid the use of <track-list>:
https://drafts.csswg.org/css-grid/#grid-template-ascii

For example the following declaration should be invalid:
  grid-template: "a b" / repeat(2, 100px);

BTW, this is related to a TODO we've in Source/core/css/parser/CSSPropertyParser.cpp:
  // TODO(rob.buis): This needs a bool parameter so we can disallow <auto-track-list> for the grid shorthand.
 

Comment 1 by r...@igalia.com, Jun 28 2016

Summary: [css-grid] Disallow repeat() in grid-template shorthand (was: [css-grid] Avoid repeat() in grid-template shorthand)
Project Member

Comment 2 by bugdroid1@chromium.org, Jun 28 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9a6a6f02b663a4066fe26d9d57809faeaaa8ee6a

commit 9a6a6f02b663a4066fe26d9d57809faeaaa8ee6a
Author: rego <rego@igalia.com>
Date: Tue Jun 28 09:07:40 2016

[css-grid] Disallow repeat() in grid-template shorthand

As discussed on www-style, "repeat()" notation shouldn't be allowed
in the ASCII branch of the grid-template shorthand.
https://lists.w3.org/Archives/Public/www-style/2016May/0193.html

The patch adds a boolean in consumeGridTrackList()
to invalidate "repeat()" when parsing grid-template shorthand.

BUG= 614314 
TEST=fast/css-grid-layout/grid-template-shorthand-get-set.html

Review-Url: https://codereview.chromium.org/2002063004
Cr-Commit-Position: refs/heads/master@{#402429}

[modify] https://crrev.com/9a6a6f02b663a4066fe26d9d57809faeaaa8ee6a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-shorthand-get-set-expected.txt
[modify] https://crrev.com/9a6a6f02b663a4066fe26d9d57809faeaaa8ee6a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-shorthand-get-set.html
[modify] https://crrev.com/9a6a6f02b663a4066fe26d9d57809faeaaa8ee6a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp

Comment 3 by r...@igalia.com, Jun 28 2016

Status: Fixed (was: Started)

Sign in to add a comment