Bug 246912 - font shorthand should reset more longhands
Summary: font shorthand should reset more longhands
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Darin Adler
URL:
Keywords: InRadar
Depends on:
Blocks: 246579
  Show dependency treegraph
 
Reported: 2022-10-22 23:17 PDT by Tim Nguyen (:ntim)
Modified: 2022-11-04 20:37 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Nguyen (:ntim) 2022-10-22 23:17:04 PDT
https://drafts.csswg.org/css-fonts-4/#font-prop

We only reset font-variant-caps, but we should reset more.

> All subproperties of the font property are first reset to their initial values, including those listed above plus font-size-adjust, font-kerning, all subproperties of font-variant, font-feature-settings, font-language-override, font-optical-sizing, font-variation-settings, and font-palette. Then, those properties that are given explicit values in the font shorthand are set to those values. For a definition of allowed and initial values, see the previously defined properties.
Comment 1 Radar WebKit Bug Importer 2022-10-23 22:13:03 PDT
<rdar://problem/101486558>
Comment 2 Darin Adler 2022-10-29 12:53:43 PDT
Pull request: https://github.com/WebKit/WebKit/pull/5937
Comment 3 EWS 2022-11-04 20:37:32 PDT
Committed 256349@main (9de002d111c7): <https://commits.webkit.org/256349@main>

Reviewed commits have been landed. Closing PR #5937 and removing active labels.