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

Issue 1835403003: Allow number-percentage calc() in border-image-slice (Closed)

Created:
4 years, 8 months ago by rwlbuis
Modified:
4 years ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow number-percentage calc() in border-image-slice According to [1] border-image-slice should support calc() of the number-percentage type, since it supports both <number> and <percentage>. To support this add consumeNumberOrPercentage to enable CSSPropertyParser to parse number-percentage calc(). When resolving border-image-slice use convertToLength to correctly evaluate the calculation expression. BUG=446860, 397061 [1] https://drafts.csswg.org/css-values-3/#percentages

Patch Set 1 #

Patch Set 2 : V2 #

Total comments: 2

Patch Set 3 : Update test #

Patch Set 4 : A small improvement #

Patch Set 5 : Rebase #

Patch Set 6 : Another approach #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -18 lines) Patch
A third_party/WebKit/LayoutTests/css3/calc/border-image-slice-with-calc.html View 1 2 3 4 5 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/css3/calc/border-image-slice-with-calc-computed.html View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/css3/calc/border-image-slice-with-calc-computed-expected.txt View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/css3/calc/border-image-slice-with-calc-expected.html View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCalculationValue.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSCalculationValue.cpp View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 2 3 4 5 5 chunks +18 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp View 1 2 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
rwlbuis
PTAL.
4 years, 8 months ago (2016-03-29 21:05:30 UTC) #5
alancutter (OOO until 2018)
I suspect the presence of numbers in calc will hit ASSERT(category() != CalcNumber) during CSSBorderImageLengthBoxInterpolationType::maybeConvertValue() ...
4 years, 8 months ago (2016-03-30 00:45:47 UTC) #6
alancutter (OOO until 2018)
My mistake, I got mixed up with border-image-width (which is another can of worms). This ...
4 years, 8 months ago (2016-03-30 01:14:02 UTC) #8
rwlbuis
On 2016/03/30 00:45:47, alancutter wrote: > https://codereview.chromium.org/1835403003/diff/20001/third_party/WebKit/LayoutTests/css3/calc/border-image-slice-with-calc.html#newcode17 > third_party/WebKit/LayoutTests/css3/calc/border-image-slice-with-calc.html:17: > border-image-slice: calc(50% - 6); > ...
4 years, 8 months ago (2016-03-31 20:59:04 UTC) #9
alancutter (OOO until 2018)
On 2016/03/31 at 20:59:04, rob.buis wrote: > On 2016/03/30 00:45:47, alancutter wrote: > > https://codereview.chromium.org/1835403003/diff/20001/third_party/WebKit/LayoutTests/css3/calc/border-image-slice-with-calc.html#newcode17 ...
4 years, 8 months ago (2016-04-05 06:24:49 UTC) #10
rwlbuis
On 2016/04/05 06:24:49, alancutter wrote: > On 2016/03/31 at 20:59:04, rob.buis wrote: > > On ...
4 years, 7 months ago (2016-04-28 03:05:41 UTC) #12
dstockwell
4 years, 7 months ago (2016-05-20 04:36:20 UTC) #13
ping? @alancutter

Powered by Google App Engine
This is Rietveld 408576698