From 46e567e6886aa3a34b0c0875b3ad21555f38cfa4 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Mon, 24 Apr 2017 15:31:54 +0900 Subject: [PATCH] Use IntermediateColor for text-shadow. --- .../style/properties/helpers/animated_properties.mako.rs | 1 + components/style/properties/longhand/inherited_text.mako.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index b0f494867423..cceac6e22d4c 100644 --- a/components/style/properties/helpers/animated_properties.mako.rs +++ b/components/style/properties/helpers/animated_properties.mako.rs @@ -2920,3 +2920,4 @@ impl <'a> From<<&'a IntermediateColor> for CSSParserColor { ${impl_intermediate_type_for_shadow('Box')} +${impl_intermediate_type_for_shadow('Text')} diff --git a/components/style/properties/longhand/inherited_text.mako.rs b/components/style/properties/longhand/inherited_text.mako.rs index 4811689e5fc4..f47178e9c76e 100644 --- a/components/style/properties/longhand/inherited_text.mako.rs +++ b/components/style/properties/longhand/inherited_text.mako.rs @@ -711,7 +711,8 @@ ${helpers.single_keyword("text-align-last", % endif -<%helpers:longhand name="text-shadow" animation_value_type="ComputedValue" +<%helpers:longhand name="text-shadow" + animation_value_type="IntermediateTextShadowList", spec="https://drafts.csswg.org/css-text-decor/#propdef-text-shadow"> use cssparser; use std::fmt;