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

Issue 764703002: Support unit-less lengths for white-list of properties only. (Closed)

Created:
6 years ago by rune
Modified:
5 years, 11 months ago
Reviewers:
Timothy Loh
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, dglazkov+blink, ed+blinkwatch_opera.com, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Support unit-less lengths for white-list of properties only. The Quirks Mode spec[1] has a white-list of properties for which we should accept unitless lengths in quirks mode. This CL limits the quirk to apply to those properties/short-hands. [1] https://quirks.spec.whatwg.org/#the-unitless-length-quirk BUG=436145 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187959

Patch Set 1 #

Patch Set 2 : WIP #

Patch Set 3 : Missing expected result change. #

Patch Set 4 : Corrected failing tests #

Patch Set 5 : Rebased #

Patch Set 6 : min/max-width/height, border-spacing, background-position, text-indent #

Total comments: 2

Patch Set 7 : min-width/height still accepts unitless lengths #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -80 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/animations/animation-add-events-in-handler.html View 1 2 chunks +2 lines, -1 line 0 comments Download
M LayoutTests/animations/keyframe-multiple-timing-functions-transform.html View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/backgrounds/repeat/parsing-background-repeat-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/backgrounds/repeat/script-tests/parsing-background-repeat.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/backgrounds/size/backgroundSize05.html View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/backgrounds/size/backgroundSize09.html View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/backgrounds/size/backgroundSize10.html View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/backgrounds/size/backgroundSize11.html View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/backgrounds/size/backgroundSize12.html View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/backgrounds/size/parsing-background-size-values-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/backgrounds/size/parsing-inherit-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/backgrounds/size/resources/parsing-background-size-values.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/backgrounds/size/resources/parsing-inherit.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-auto-columns-rows-auto-flow-resolution.html View 1 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/fast/css/parsing-unitless-length-quirk.html View 1 2 3 4 5 1 chunk +221 lines, -0 lines 0 comments Download
M LayoutTests/fast/hidpi/image-set-background-repeat.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/hidpi/image-set-background-repeat-expected.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/images/mask-box-image-crash.html View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/parser/CSSParserMode.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/parser/CSSPropertyParser.h View 1 2 3 4 5 4 chunks +22 lines, -20 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 5 23 chunks +55 lines, -32 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Timothy Loh
FYI SVG lengths can be unitless unconditionally http://www.w3.org/TR/SVG/types.html#BasicDataTypes "For SVG-specific properties, the length unit identifier ...
6 years ago (2014-11-27 00:13:02 UTC) #1
rune
On 2014/11/27 at 00:13:02, timloh wrote: > FYI SVG lengths can be unitless unconditionally > ...
6 years ago (2014-11-27 14:29:15 UTC) #2
rune
Ready for review.
6 years ago (2014-12-01 11:29:43 UTC) #4
rune
More properties (from CSS2.1) were added to the white-list in the spec. Patch updated.
5 years, 11 months ago (2015-01-05 14:22:03 UTC) #5
Timothy Loh
On 2015/01/05 14:22:03, rune wrote: > More properties (from CSS2.1) were added to the white-list ...
5 years, 11 months ago (2015-01-05 23:12:20 UTC) #6
Timothy Loh
lgtm I don't really like the unitless variable that spans the scope of the entire ...
5 years, 11 months ago (2015-01-06 23:21:00 UTC) #7
rune
On 2015/01/06 at 23:21:00, timloh wrote: > I think you might need a separate OWNER ...
5 years, 11 months ago (2015-01-07 08:40:23 UTC) #8
rune
https://codereview.chromium.org/764703002/diff/100001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/764703002/diff/100001/LayoutTests/TestExpectations#newcode358 LayoutTests/TestExpectations:358: crbug.com/436145 animations/keyframe-multiple-timing-functions-transform.html [ NeedsRebaseline ] On 2015/01/06 at 23:21:00, ...
5 years, 11 months ago (2015-01-07 08:40:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/764703002/120001
5 years, 11 months ago (2015-01-07 09:32:42 UTC) #11
commit-bot: I haz the power
5 years, 11 months ago (2015-01-07 10:46:20 UTC) #12
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=187959

Powered by Google App Engine
This is Rietveld 408576698