style: Remove 'font-palette' from the 'font' shorthand

Differential Revision: https://phabricator.services.mozilla.com/D164128
This commit is contained in:
Jonathan Kew 2022-12-08 10:16:34 +00:00 committed by Martin Robinson
parent 37c2d4d30a
commit 6162f82c6b

View file

@ -28,7 +28,6 @@
${'font-language-override' if engine == 'gecko' else ''} ${'font-language-override' if engine == 'gecko' else ''}
${'font-feature-settings' if engine == 'gecko' else ''} ${'font-feature-settings' if engine == 'gecko' else ''}
${'font-variation-settings' if engine == 'gecko' else ''} ${'font-variation-settings' if engine == 'gecko' else ''}
${'font-palette' if engine == 'gecko' else ''}
" "
derive_value_info="False" derive_value_info="False"
spec="https://drafts.csswg.org/css-fonts-3/#propdef-font" spec="https://drafts.csswg.org/css-fonts-3/#propdef-font"
@ -51,7 +50,7 @@
variant_emoji variant_ligatures \ variant_emoji variant_ligatures \
variant_numeric variant_position \ variant_numeric variant_position \
feature_settings variation_settings \ feature_settings variation_settings \
optical_sizing palette".split() optical_sizing".split()
%> %>
% if engine == "gecko": % if engine == "gecko":
% for prop in gecko_sub_properties: % for prop in gecko_sub_properties:
@ -189,11 +188,6 @@
return Ok(()); return Ok(());
} }
} }
if let Some(v) = self.font_palette {
if v != &font_palette::get_initial_specified_value() {
return Ok(());
}
}
if let Some(v) = self.font_variant_emoji { if let Some(v) = self.font_variant_emoji {
if v != &font_variant_emoji::get_initial_specified_value() { if v != &font_variant_emoji::get_initial_specified_value() {
return Ok(()); return Ok(());
@ -201,7 +195,7 @@
} }
% for name in gecko_sub_properties: % for name in gecko_sub_properties:
% if name != "optical_sizing" and name != "variation_settings" and name != "palette" and name != "variant_emoji": % if name != "optical_sizing" and name != "variation_settings" and name != "variant_emoji":
if self.font_${name} != &font_${name}::get_initial_specified_value() { if self.font_${name} != &font_${name}::get_initial_specified_value() {
return Ok(()); return Ok(());
} }
@ -264,7 +258,7 @@
let mut all = true; let mut all = true;
% for prop in SYSTEM_FONT_LONGHANDS: % for prop in SYSTEM_FONT_LONGHANDS:
% if prop == "font_optical_sizing" or prop == "font_variation_settings" or prop == "font_palette": % if prop == "font_optical_sizing" or prop == "font_variation_settings":
if let Some(value) = self.${prop} { if let Some(value) = self.${prop} {
% else: % else:
{ {