Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
font-weight should be clamped to 1 as minimum
https://bugs.webkit.org/show_bug.cgi?id=246575 rdar://problem/101441591 Reviewed by Tim Nguyen. * LayoutTests/fast/text/font-weight-parse-expected.txt: Updated to expect PASS. * LayoutTests/fast/text/font-weight-parse.html: Changed to expect a minimum of 1 rather than of 0. * LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/variations/font-shorthand-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/variations/font-weight-parsing-expected.txt: Updated to expect more PASS. * LayoutTests/platform/gtk/fast/text/font-weight-parse-expected.txt: Removed. * LayoutTests/platform/ios/fast/text/font-weight-parse-expected.txt: Removed. * LayoutTests/platform/mac/fast/text/font-weight-parse-expected.txt: Removed. * LayoutTests/platform/wpe/fast/text/font-weight-parse-expected.txt: Removed. * Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp: (WebCore::CSSPropertyParserHelpers::consumeFontWeightNumberRaw): Clamp to [1,1000]. Canonical link: https://commits.webkit.org/255873@main
- Loading branch information
1 parent
8d82a00
commit 00db99d
Showing
9 changed files
with
23 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 0 additions & 69 deletions
69
LayoutTests/platform/gtk/fast/text/font-weight-parse-expected.txt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.