style: Move font-variant-alternates outside of mako

This commit is contained in:
CYBAI 2017-11-10 01:51:52 +08:00
parent 333c6ef7fa
commit aeae3113bf
6 changed files with 317 additions and 205 deletions

View file

@ -265,6 +265,17 @@ impl ToAnimatedValue for FontSizeAdjust {
}
}
/// Use VariantAlternatesList as computed type of FontVariantAlternates
pub type FontVariantAlternates = specified::VariantAlternatesList;
impl FontVariantAlternates {
#[inline]
/// Get initial value with VariantAlternatesList
pub fn get_initial_value() -> Self {
specified::VariantAlternatesList(vec![].into_boxed_slice())
}
}
impl ToComputedValue for specified::MozScriptMinSize {
type ComputedValue = MozScriptMinSize;