From 4a0482f0a04feff8fbdcd9d59a8606d1651db7d3 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Mon, 30 Jan 2017 16:51:03 +1100 Subject: [PATCH] Add comma between layers for mask shorthand --- components/style/properties/shorthand/mask.mako.rs | 4 ++++ 1 file changed, 4 insertions(+) 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())