--- a/servo/components/style/properties/longhand/svg.mako.rs
+++ b/servo/components/style/properties/longhand/svg.mako.rs
@@ -16,47 +16,47 @@
${helpers.single_keyword("vector-effect", "none non-scaling-stroke",
products="gecko", animation_value_type="discrete",
spec="https://www.w3.org/TR/SVGTiny12/painting.html#VectorEffectProperty")}
// Section 13 - Gradients and Patterns
${helpers.predefined_type(
"stop-color",
- "RGBAColor",
- "RGBA::new(0, 0, 0, 255)",
+ "Color",
+ "computed_value::T::rgba(RGBA::new(0, 0, 0, 255))",
products="gecko",
animation_value_type="AnimatedRGBA",
spec="https://www.w3.org/TR/SVGTiny12/painting.html#StopColorProperty",
)}
${helpers.predefined_type("stop-opacity", "Opacity", "1.0",
products="gecko",
animation_value_type="ComputedValue",
spec="https://www.w3.org/TR/SVGTiny12/painting.html#propdef-stop-opacity")}
// Section 15 - Filter Effects
${helpers.predefined_type(
"flood-color",
- "RGBAColor",
- "RGBA::new(0, 0, 0, 255)",
+ "Color",
+ "computed_value::T::rgba(RGBA::new(0, 0, 0, 255))",
products="gecko",
animation_value_type="AnimatedRGBA",
spec="https://www.w3.org/TR/SVG/filters.html#FloodColorProperty",
)}
${helpers.predefined_type("flood-opacity", "Opacity",
"1.0", products="gecko", animation_value_type="ComputedValue",
spec="https://www.w3.org/TR/SVG/filters.html#FloodOpacityProperty")}
${helpers.predefined_type(
"lighting-color",
- "RGBAColor",
- "RGBA::new(255, 255, 255, 255)",
+ "Color",
+ "computed_value::T::rgba(RGBA::new(255, 255, 255, 255))",
products="gecko",
animation_value_type="AnimatedRGBA",
spec="https://www.w3.org/TR/SVG/filters.html#LightingColorProperty",
)}
// CSS Masking Module Level 1
// https://drafts.fxtf.org/css-masking
${helpers.single_keyword("mask-type", "luminance alpha",