diff --git a/components/style/properties/shorthand/mask.mako.rs b/components/style/properties/shorthand/mask.mako.rs index 0f857e2ae0b..0d07e108d31 100644 --- a/components/style/properties/shorthand/mask.mako.rs +++ b/components/style/properties/shorthand/mask.mako.rs @@ -142,6 +142,10 @@ } for i in 0..len { + if i > 0 { + try!(dest.write_str(", ")); + } + % for name in "image mode position_x position_y size repeat origin clip composite".split(): let ${name} = if let DeclaredValue::Value(ref arr) = *self.mask_${name} { arr.0.get(i % arr.0.len())