mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Simplify animation shorthand parsing code
This commit is contained in:
parent
a06b3f2039
commit
1bb1eeeb53
2 changed files with 31 additions and 70 deletions
|
@ -983,7 +983,7 @@ mod shorthand_serialization {
|
|||
|
||||
let serialization = block.to_css_string();
|
||||
|
||||
assert_eq!(serialization, "animation: 1s ease-in 0s normal forwards infinite paused bounce;")
|
||||
assert_eq!(serialization, "animation: 1s ease-in 0s infinite normal forwards paused bounce;")
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -1001,8 +1001,8 @@ mod shorthand_serialization {
|
|||
let serialization = block.to_css_string();
|
||||
|
||||
assert_eq!(serialization,
|
||||
"animation: 1s ease-in 0s normal forwards infinite paused bounce, \
|
||||
0.2s linear 1s reverse backwards 2 running roll;");
|
||||
"animation: 1s ease-in 0s infinite normal forwards paused bounce, \
|
||||
0.2s linear 1s 2 reverse backwards running roll;");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue