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

Issue 2057113002: [css-grid] Allow percentage values for column and row gutters (Closed)

Created:
4 years, 6 months ago by jfernandez
Modified:
4 years, 3 months ago
CC:
chromium-reviews, jfernandez, szager+layoutwatch_chromium.org, blink-reviews-style_chromium.org, zoltan1, svillar, blink-reviews-css, pdr+renderingwatchlist_chromium.org, leviw+renderwatch, dglazkov+blink, apavlov+blink_chromium.org, jchaffraix+rendering, darktears, blink-reviews, eae+blinkwatch, blink-reviews-layout_chromium.org, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-grid] Allow percentage values for column and row gutters The grid-column-gap and grid-row-gap allow now percentage as one of the possible values. This patch adds the required support for both parsing and layout logic. BUG=615248

Patch Set 1 #

Patch Set 2 : Patch rebased. New positioned test cases and related bug fixes. #

Total comments: 12

Patch Set 3 : Patch rebased and applied the suggested changes. #

Patch Set 4 : Grid gaps don't support unitless quirk. #

Total comments: 13

Messages

Total messages: 11 (3 generated)
jfernandez
4 years, 6 months ago (2016-06-22 11:16:02 UTC) #3
cbiesinger
https://codereview.chromium.org/2057113002/diff/20001/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp File third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp (right): https://codereview.chromium.org/2057113002/diff/20001/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp#newcode845 third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp:845: LayoutUnit gutterSize = grid->guttersSize(direction, 2, isRowAxis ? grid->logicalWidth() : ...
4 years, 6 months ago (2016-06-22 18:46:13 UTC) #5
jfernandez
https://codereview.chromium.org/2057113002/diff/20001/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp File third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp (right): https://codereview.chromium.org/2057113002/diff/20001/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp#newcode845 third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp:845: LayoutUnit gutterSize = grid->guttersSize(direction, 2, isRowAxis ? grid->logicalWidth() : ...
4 years, 5 months ago (2016-06-27 23:56:48 UTC) #6
Timothy Loh
https://codereview.chromium.org/2057113002/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/2057113002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode3701 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:3701: return consumeLengthOrPercent(m_range, m_context.mode(), ValueRangeNonNegative, UnitlessQuirk::Allow); On 2016/06/27 23:56:47, jfernandez ...
4 years, 5 months ago (2016-06-28 00:04:45 UTC) #7
jfernandez
https://codereview.chromium.org/2057113002/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/2057113002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode3701 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:3701: return consumeLengthOrPercent(m_range, m_context.mode(), ValueRangeNonNegative, UnitlessQuirk::Allow); On 2016/06/28 00:04:45, Timothy ...
4 years, 5 months ago (2016-06-28 00:15:19 UTC) #8
Manuel Rego
Nice patch and really cool test! I think we still need some more work, added ...
4 years, 5 months ago (2016-07-01 06:45:57 UTC) #9
svillar
I'd prefer to review it after landing auto-fit as things are going to change a ...
4 years, 5 months ago (2016-07-13 09:08:08 UTC) #10
Manuel Rego
4 years, 3 months ago (2016-09-09 05:45:03 UTC) #11
We should close this CL as a new version has already landed:
https://codereview.chromium.org/2323793002/

Powered by Google App Engine
This is Rietveld 408576698