style: Implement CSS support for the optional adjustment-basis metric keywords for the font-size-adjust property (enabled on Nightly only for now)

Differential Revision: https://phabricator.services.mozilla.com/D115596
This commit is contained in:
Jonathan Kew 2023-05-21 23:43:02 +02:00 committed by Oriol Brufau
parent d1936e6a4a
commit 16168fe4e7
5 changed files with 99 additions and 100 deletions

View file

@ -388,8 +388,7 @@ pub mod system_font {
font_weight,
font_stretch,
font_style,
font_size_adjust: longhands::font_size_adjust::computed_value
::T::from_gecko_adjust(system.sizeAdjust),
font_size_adjust: system.sizeAdjust,
% for kwprop in kw_font_props:
${kwprop}: longhands::${kwprop}::computed_value::T::from_gecko_keyword(
system.${to_camel_case_lower(kwprop.replace('font_', ''))}