style: Implement the font-synthesis-{weight,style,small-caps} longhand properties, and make font-synthesis into a shorthand

Differential Revision: https://phabricator.services.mozilla.com/D167480
This commit is contained in:
Jonathan Kew 2023-01-29 13:25:31 +00:00 committed by Martin Robinson
parent dbd3eab9cd
commit 05fb1b62b7
9 changed files with 169 additions and 208 deletions

View file

@ -884,7 +884,6 @@ class PropertyRestrictions:
"text-combine-upright",
"ruby-position",
# XXX Should these really apply to cue?
"font-synthesis",
"-moz-osx-font-smoothing",
# FIXME(emilio): background-blend-mode should be part of the
# background shorthand, and get reset, per
@ -895,6 +894,7 @@ class PropertyRestrictions:
+ PropertyRestrictions.shorthand(data, "background")
+ PropertyRestrictions.shorthand(data, "outline")
+ PropertyRestrictions.shorthand(data, "font")
+ PropertyRestrictions.shorthand(data, "font-synthesis")
)