From 785ef8225126ceacd7a8e9c90bcd2ce2513965c0 Mon Sep 17 00:00:00 2001 From: Boris Chiou Date: Wed, 14 Jun 2017 17:41:47 +0800 Subject: [PATCH] Make stop-color, flood-color, lighting-color animatable. Use IntermediateRGBA as the animation value type, just like 'color' attribute. --- components/style/properties/longhand/svg.mako.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/style/properties/longhand/svg.mako.rs b/components/style/properties/longhand/svg.mako.rs index b2f2b6f2ef6..05e5e508351 100644 --- a/components/style/properties/longhand/svg.mako.rs +++ b/components/style/properties/longhand/svg.mako.rs @@ -23,7 +23,7 @@ ${helpers.predefined_type( "stop-color", "RGBAColor", "RGBA::new(0, 0, 0, 255)", products="gecko", - animation_value_type="none", + animation_value_type="IntermediateRGBA", spec="https://www.w3.org/TR/SVGTiny12/painting.html#StopColorProperty")} ${helpers.predefined_type("stop-opacity", "Opacity", "1.0", @@ -37,7 +37,7 @@ ${helpers.predefined_type( "flood-color", "RGBAColor", "RGBA::new(0, 0, 0, 255)", products="gecko", - animation_value_type="none", + animation_value_type="IntermediateRGBA", spec="https://www.w3.org/TR/SVG/filters.html#FloodColorProperty")} ${helpers.predefined_type("flood-opacity", "Opacity", @@ -48,7 +48,7 @@ ${helpers.predefined_type( "lighting-color", "RGBAColor", "RGBA::new(255, 255, 255, 255)", products="gecko", - animation_value_type="none", + animation_value_type="IntermediateRGBA", spec="https://www.w3.org/TR/SVG/filters.html#LightingColorProperty")} // CSS Masking Module Level 1