mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Align serialization of keyframes rule with Gecko.
This commit is contained in:
parent
0c1fd2f26e
commit
32a10073c1
1 changed files with 3 additions and 7 deletions
|
@ -575,18 +575,14 @@ impl ToCssWithGuard for KeyframesRule {
|
|||
where W: fmt::Write {
|
||||
try!(dest.write_str("@keyframes "));
|
||||
try!(self.name.to_css(dest));
|
||||
try!(dest.write_str(" { "));
|
||||
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}")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue