Align serialization of keyframes rule with Gecko.

This commit is contained in:
Xidorn Quan 2017-05-19 13:25:05 +10:00
parent 0c1fd2f26e
commit 32a10073c1

View file

@ -577,16 +577,12 @@ impl ToCssWithGuard for KeyframesRule {
try!(self.name.to_css(dest));
try!(dest.write_str(" {"));
let iter = self.keyframes.iter();
let mut first = true;
for lock in iter {
if !first {
try!(dest.write_str(" "));
}
first = false;
try!(dest.write_str("\n"));
let keyframe = lock.read_with(&guard);
try!(keyframe.to_css(guard, dest));
}
dest.write_str(" }")
dest.write_str("\n}")
}
}