font shorthand with inherit keyword incorrectly parsed and rendered
authoralexis.menard@openbossa.org <alexis.menard@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Feb 2012 21:00:24 +0000 (21:00 +0000)
committeralexis.menard@openbossa.org <alexis.menard@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Feb 2012 21:00:24 +0000 (21:00 +0000)
commit9b5bdc64e94fd7bf54b0937b28696eaeab16b114
tree5a268896267db983ea81a1e3b367e77d063f3b10
parent7493ca5728b8509a3c827690d55b31a4e76d9e2b
font shorthand with inherit keyword incorrectly parsed and rendered
https://bugs.webkit.org/show_bug.cgi?id=20181

Reviewed by Tony Chang.

Source/WebCore:

As stated in http://www.w3.org/TR/CSS21/changes.html#q142
if the inherit (and also by extension initial) is encountered in the
middle of the shorthand then the property becomes invalid.

Test: fast/css/font-shorthand-mix-inherit.html

* css/CSSParser.cpp:
(WebCore::CSSParser::parseFont):
(WebCore::CSSParser::parseFontFamily):

LayoutTests:

* fast/css/font-shorthand-mix-inherit-expected.txt: Added.
* fast/css/font-shorthand-mix-inherit.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107728 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/font-shorthand-mix-inherit-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/font-shorthand-mix-inherit.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/CSSParser.cpp