mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
style: Remove system font support for various font longhands
We don't use them[1], and these are generally not properties that authors would be able to set via the font shorthand anyways. Let's simplify the code. This fixes the font-variant bug and also unblocks further clean-ups of these properties in the future. [1]: https://searchfox.org/mozilla-central/rev/59f0bf3c13dd455d9f5415b89178de701ea6b850/widget/LookAndFeelTypes.ipdlh#12-18 Differential Revision: https://phabricator.services.mozilla.com/D160352
This commit is contained in:
parent
3c4d198ad7
commit
efdf518acc
7 changed files with 156 additions and 588 deletions
|
@ -29,13 +29,7 @@ ALL_AXES = [(axis, False) for axis in PHYSICAL_AXES] + [
|
|||
]
|
||||
|
||||
SYSTEM_FONT_LONGHANDS = """font_family font_size font_style
|
||||
font_variant_caps font_stretch font_kerning
|
||||
font_variant_position font_weight
|
||||
font_size_adjust font_variant_alternates
|
||||
font_variant_ligatures font_variant_east_asian
|
||||
font_variant_numeric font_language_override
|
||||
font_feature_settings font_variation_settings
|
||||
font_optical_sizing""".split()
|
||||
font_stretch font_weight""".split()
|
||||
|
||||
# Bitfield values for all rule types which can have property declarations.
|
||||
STYLE_RULE = 1 << 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue