From f6bf397bb279d52f6a4516aae9fc76ec4302a20f Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Thu, 2 Feb 2017 19:54:21 +0100 Subject: [PATCH] Add font-stretch descriptor to @font-face --- components/style/font_face.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/style/font_face.rs b/components/style/font_face.rs index b4f4b6185cb..acf604903b3 100644 --- a/components/style/font_face.rs +++ b/components/style/font_face.rs @@ -8,7 +8,7 @@ #![deny(missing_docs)] -#[cfg(feature = "gecko")] use computed_values::{font_style, font_weight}; +#[cfg(feature = "gecko")] use computed_values::{font_style, font_weight, font_stretch}; use computed_values::font_family::FamilyName; use cssparser::{AtRuleParser, DeclarationListParser, DeclarationParser, Parser}; use parser::{ParserContext, log_css_error, Parse}; @@ -298,6 +298,9 @@ font_face_descriptors! { /// The weight of this font face "font-weight" weight: font_weight::T = font_weight::T::Weight400 /* normal */, + + /// The stretch of this font face + "font-stretch" stretch: font_stretch::T = font_stretch::T::normal, ] }