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

Issue 249803002: Preserve identical values for background-size and -webkit-mask-size. (Closed)

Created:
6 years, 8 months ago by andersr
Modified:
6 years, 8 months ago
Reviewers:
esprehn, ojan
CC:
blink-reviews, ed+blinkwatch_opera.com, ojan, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Preserve identical values for background-size and -webkit-mask-size. This patch fixes a bug where background-size/-webkit-mask-size would be incorrectly serialized to text when the values in the pair are identical. Setting 'background-size: 100% 100%', for example, would produce a text representation of 'background-size: 100%', which is treated as 'background-position: 100% auto'. For -webkit-background-size, '100%' really does mean '100% 100%', so we maintain a policy of 'DropIdenticalValues' for this property. BUG=364962 TEST=fast/backgrounds/size/parsing-background-sizes-values.html fast/masking/parsing-mask.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172548

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Patch Set 3 : Remove comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -5 lines) Patch
M LayoutTests/fast/backgrounds/size/parsing-background-size-values-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/backgrounds/size/resources/parsing-background-size-values.js View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/masking/parsing-mask.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/masking/parsing-mask-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
andersr
6 years, 8 months ago (2014-04-23 17:33:23 UTC) #1
ojan
https://codereview.chromium.org/249803002/diff/1/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/249803002/diff/1/Source/core/css/parser/CSSPropertyParser.cpp#newcode2849 Source/core/css/parser/CSSPropertyParser.cpp:2849: // For backwards compatibility. This comment seems somewhat lacking ...
6 years, 8 months ago (2014-04-24 01:12:38 UTC) #2
andersr
https://codereview.chromium.org/249803002/diff/1/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/249803002/diff/1/Source/core/css/parser/CSSPropertyParser.cpp#newcode2849 Source/core/css/parser/CSSPropertyParser.cpp:2849: // For backwards compatibility. > it shouldn't be there. ...
6 years, 8 months ago (2014-04-24 11:05:41 UTC) #3
ojan
lgtm
6 years, 8 months ago (2014-04-24 17:54:43 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andersr@opera.com/249803002/40001
6 years, 8 months ago (2014-04-24 17:55:14 UTC) #5
commit-bot: I haz the power
6 years, 8 months ago (2014-04-24 23:07:24 UTC) #6
Message was sent while issue was closed.
Change committed as 172548

Powered by Google App Engine
This is Rietveld 408576698