Only accept inherit/initial/unset in single value declarations
commit1c3dddd048b1f0d6797ea16d1ed820c3ebe95ca6
authorrob.buis@samsung.com <rob.buis@samsung.com>
Wed, 15 Apr 2015 02:09:43 +0000 (15 02:09 +0000)
committerrob.buis@samsung.com <rob.buis@samsung.com>
Wed, 15 Apr 2015 02:09:43 +0000 (15 02:09 +0000)
tree736669880748366561443ee05a2bc7861049cb07
parent761ca637ef85e0d536397a0c888009c3b4f8141c
Only accept inherit/initial/unset in single value declarations

Do not accept inherit/initial/unset in value list longer than one.
Previously "margin: inherit 5px" would be discarded correctly, but
"margin: 5px inherit" would be accepted erroneously. This patch now
fixes the latter.

Behavior matches Firefox.

BUG=476868

Review URL: https://codereview.chromium.org/1085873002

git-svn-id: svn://svn.chromium.org/blink/trunk@193740 bbb929c8-8fbe-4397-9dbb-9b2b20218538
third_party/WebKit/LayoutTests/css3/supports-dom-api-expected.txt
third_party/WebKit/LayoutTests/css3/supports-dom-api.html
third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp