Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix handling of
font-variant: normal/none
shorthand
https://bugs.webkit.org/show_bug.cgi?id=244219 <rdar://98998615> Reviewed by Antti Koivisto. - `font-variant: normal/none` should reset font-variant-numeric and font-variant-alternates - Fix computed style of `font-variant: none` to not expand `font-variant-ligatures` Tests: - fast/text/font-variant-shorthand.html - imported/w3c/web-platform-tests/css/css-fonts/inheritance.html - imported/w3c/web-platform-tests/css/css-fonts/font-variant-01.html (still failing for different reason) - imported/w3c/web-platform-tests/css/css-fonts/font-variant-02.html (still failing for different reason) * LayoutTests/fast/text/font-variant-shorthand-expected.txt: * LayoutTests/fast/text/font-variant-shorthand.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/inheritance-expected.txt: * Source/WebCore/css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::fontVariantShorthandValue): (WebCore::ComputedStyleExtractor::valueForPropertyInStyle): (WebCore::fontVariantFromStyle): Deleted. * Source/WebCore/css/CSSComputedStyleDeclaration.h: * Source/WebCore/css/parser/CSSPropertyParser.cpp: (WebCore::CSSPropertyParser::consumeFontVariantShorthand): Canonical link: https://commits.webkit.org/253731@main
- Loading branch information
Showing
6 changed files
with
45 additions
and
186 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
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