Bug 249337
| Summary: | `font-variant-alternates: historical-forms` doesn't reflect properly via StylePropertyMap | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> |
| Component: | CSS | Assignee: | 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
`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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Chris Dumez
Pull request: https://github.com/WebKit/WebKit/pull/7640
EWS
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
<rdar://problem/103417243>