mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Add comma between layers for mask shorthand
This commit is contained in:
parent
920b0ee6ca
commit
4a0482f0a0
1 changed files with 4 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue