font-weight: 1000 is not parsed successfully
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 May 2019 01:14:37 +0000 (01:14 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 May 2019 01:14:37 +0000 (01:14 +0000)
commit3d9a97d034ef0f525ef873dd8b8c674e3e5d87ba
treeee83c0a582550894dee96521a2d130b072e951e4
parentb54f885108bf4bee48c84227834be516e6f2b6c4
font-weight: 1000 is not parsed successfully
https://bugs.webkit.org/show_bug.cgi?id=197427

Reviewed by Dean Jackson.

Source/WebCore:

The spec says:
"Only values greater than or equal to 1, and less than or equal to 1000, are valid"

This change brings us in-line with all the other browsers.

Test: fast/text/font-weight-1-1000.html

* css/parser/CSSPropertyParserHelpers.cpp:
(WebCore::CSSPropertyParserHelpers::consumeFontWeightNumber):

LayoutTests:

* platform/win/TestExpectations: Windows disables variation fonts, so requires values to be divisible by 100
* fast/text/font-weight-1-1000-expected.txt: Added.
* fast/text/font-weight-1-1000.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244817 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/font-weight-1-1000-expected.txt [new file with mode: 0644]
LayoutTests/fast/text/font-weight-1-1000.html [new file with mode: 0644]
LayoutTests/platform/win/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp