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-face src format() should parse valid unsupported keywords
https://bugs.webkit.org/show_bug.cgi?id=259144 rdar://112135869 Reviewed by Tim Nguyen. A valid format() keyword (ident) argument should be parsed even if the represented format is not supported by the engine. The engine should reject loading the font for unsupported formats but this should happen only at loading time and not at parsing time. The reason why we were rejecting it before, at parsing time, is for some inconsistency in different parts of the spec. That will be fixed soon by the CSSWG, see: w3c/csswg-drafts#8793 * LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-face-src-format-expected.txt: * Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp: (WebCore::CSSPropertyParserHelpers::isFontFormatKeywordValid): (WebCore::CSSPropertyParserHelpers::consumeFontFormat): * Source/WebCore/css/parser/CSSSupportsParser.cpp: (WebCore::CSSSupportsParser::consumeSupportsFontFormatFunction): Canonical link: https://commits.webkit.org/266043@main
- Loading branch information
1 parent
10dac7d
commit b2a00a2
Showing
3 changed files
with
25 additions
and
8 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