WebCore:
2008-04-26 Anatoli Papirovski <apapirovski@mac.com>
Reviewed by Dave Hyatt.
Fix for https://bugs.webkit.org/show_bug.cgi?id=18583
WebKit should ignore declarations with a negative value for
line-height and font-size, including in the shorthand font form.
Tests: fast/css/font-size-negative.html
fast/css/line-height-negative.html
* css/CSSParser.cpp:
(WebCore::CSSParser::parseValue):
(WebCore::CSSParser::parseFont):
LayoutTests:
2008-04-26 Anatoli Papirovski <apapirovski@mac.com>
Reviewed by Dave Hyatt.
Test for https://bugs.webkit.org/show_bug.cgi?id=18583
Negative values are invalid for font-size and line-height,
including in the shorthand "font".
* fast/css/font-size-negative.html: Added.
* fast/css/line-height-negative.html: Added.
* platform/mac/css2.1/t100801-c548-ln-ht-02-b-ag-expected.checksum:
* platform/mac/css2.1/t100801-c548-ln-ht-02-b-ag-expected.png:
* platform/mac/css2.1/t100801-c548-ln-ht-02-b-ag-expected.txt:
* platform/mac/fast/css/font-size-negative-expected.checksum: Added.
* platform/mac/fast/css/font-size-negative-expected.png: Added.
* platform/mac/fast/css/font-size-negative-expected.txt: Added.
* platform/mac/fast/css/line-height-negative-expected.checksum: Added.
* platform/mac/fast/css/line-height-negative-expected.png: Added.
* platform/mac/fast/css/line-height-negative-expected.txt: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@32591
268f45cc-cd09-0410-ab3c-
d52691b4dbfc