Changeset 244817 in webkit
- Timestamp:
- Apr 30, 2019, 6:14:37 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/text/font-weight-1-1000-expected.txt (added)
-
LayoutTests/fast/text/font-weight-1-1000.html (added)
-
LayoutTests/platform/win/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r244816 r244817 1 2019-04-30 Myles C. Maxfield <mmaxfield@apple.com> 2 3 font-weight: 1000 is not parsed successfully 4 https://bugs.webkit.org/show_bug.cgi?id=197427 5 6 Reviewed by Dean Jackson. 7 8 * platform/win/TestExpectations: Windows disables variation fonts, so requires values to be divisible by 100 9 * fast/text/font-weight-1-1000-expected.txt: Added. 10 * fast/text/font-weight-1-1000.html: Added. 11 1 12 2019-04-30 Commit Queue <commit-queue@webkit.org> 2 13 -
trunk/LayoutTests/platform/win/TestExpectations
r244797 r244817 3598 3598 transitions/clip-path-path-transitions.html [ Failure ] 3599 3599 legacy-animation-engine/transitions/clip-path-path-transitions.html [ Failure ] 3600 fast/text/font-weight-1-1000.html [ Failure ] 3600 3601 # Unexpected image-only failures tracked in webkit.org/b/172437. 3601 3602 editing/selection/update-selection-by-style-change.html [ ImageOnlyFailure ] -
trunk/Source/WebCore/ChangeLog
r244815 r244817 1 2019-04-30 Myles C. Maxfield <mmaxfield@apple.com> 2 3 font-weight: 1000 is not parsed successfully 4 https://bugs.webkit.org/show_bug.cgi?id=197427 5 6 Reviewed by Dean Jackson. 7 8 The spec says: 9 "Only values greater than or equal to 1, and less than or equal to 1000, are valid" 10 11 This change brings us in-line with all the other browsers. 12 13 Test: fast/text/font-weight-1-1000.html 14 15 * css/parser/CSSPropertyParserHelpers.cpp: 16 (WebCore::CSSPropertyParserHelpers::consumeFontWeightNumber): 17 1 18 2019-04-30 Youenn Fablet <youenn@apple.com> 2 19 -
trunk/Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp
r244115 r244817 231 231 // Values less than or equal to 0 or greater than or equal to 1000 are parse errors. 232 232 auto& token = range.peek(); 233 if (token.type() == NumberToken && token.numericValue() > 0 && token.numericValue() <1000233 if (token.type() == NumberToken && token.numericValue() >= 1 && token.numericValue() <= 1000 234 234 #if !ENABLE(VARIATION_FONTS) 235 235 && token.numericValueType() == IntegerValueType && divisibleBy100(token.numericValue())
Note:
See TracChangeset
for help on using the changeset viewer.