From b03b8c2991ff6007a86d61e0ef6b517a142184f9 Mon Sep 17 00:00:00 2001 From: Suh Dude Date: Mon, 12 Dec 2016 21:19:18 -0500 Subject: [PATCH] font-variant-caps implemented in font.mako.rs --- components/style/properties/longhand/font.mako.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/components/style/properties/longhand/font.mako.rs b/components/style/properties/longhand/font.mako.rs index 17cd56a3163..ee9ae6a4470 100644 --- a/components/style/properties/longhand/font.mako.rs +++ b/components/style/properties/longhand/font.mako.rs @@ -140,6 +140,21 @@ ${helpers.single_keyword("font-variant", "normal small-caps", animatable=False)} + +<% font_variant_caps_custom_consts= { "small-caps": "SMALLCAPS", + "all-small": "ALLSMALL", + "petite-caps": "PETITECAPS", + "all-petite": "ALLPETITE", + "titling-caps": "TITLING" } %> + +${helpers.single_keyword("font-variant-caps", + "normal small-caps all-small petite-caps unicase titling-caps", + gecko_constant_prefix="NS_FONT_VARIANT_CAPS", + gecko_ffi_name="mFont.variantCaps", + products="gecko", + custom_consts=font_variant_caps_custom_consts, + animatable=False)} + <%helpers:longhand name="font-weight" need_clone="True" animatable="True"> use std::fmt; use style_traits::ToCss;