Bug 249337

Summary: `font-variant-alternates: historical-forms` doesn't reflect properly via StylePropertyMap
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: CSSAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://w3c.github.io/csswg-drafts/css-fonts/#font-variant-alternates-prop
Bug Depends on:    
Bug Blocks: 175733    

Chris Dumez
Reported 2022-12-14 14:10:12 PST
`font-variant-alternates: historical-forms` doesn't reflect properly via StylePropertyMap. Even though `historical-forms` is a supported keyword for this CSS property [1], we wouldn't get a CSSKeywordValue when reading the property value back. The issue is that we convert to a FontVariantAlternates internally and then back to a CSSValue. The function to convert back to a CSSValue (fontVariantAlternatesPropertyValue) was only handling the `normal` keyword but not the `historical-forms` one. [1] https://w3c.github.io/csswg-drafts/css-fonts/#font-variant-alternates-prop
Attachments
Chris Dumez
Comment 1 2022-12-14 14:12:06 PST
EWS
Comment 2 2022-12-15 13:54:16 PST
Committed 257955@main (37f48652e37e): <https://commits.webkit.org/257955@main> Reviewed commits have been landed. Closing PR #7640 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2022-12-15 13:55:19 PST
Note You need to log in before you can comment on or make changes to this bug.