Skip to content

Commit 283c0f1

Browse files
committed
Merge pull request #102 from stmichael/101_animation_fill_mode
Add support for animation-fill-mode
2 parents 83c43b2 + 0c930dc commit 283c0f1

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/css/Properties.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ var Properties = {
1414
"animation-delay" : { multi: "<time>", comma: true },
1515
"animation-direction" : { multi: "normal | alternate", comma: true },
1616
"animation-duration" : { multi: "<time>", comma: true },
17+
"animation-fill-mode" : { multi: "none | forwards | backwards | both", comma: true },
1718
"animation-iteration-count" : { multi: "<number> | infinite", comma: true },
1819
"animation-name" : { multi: "none | <ident>", comma: true },
1920
"animation-play-state" : { multi: "running | paused", comma: true },
@@ -37,6 +38,7 @@ var Properties = {
3738
"-webkit-animation-delay" : { multi: "<time>", comma: true },
3839
"-webkit-animation-direction" : { multi: "normal | alternate", comma: true },
3940
"-webkit-animation-duration" : { multi: "<time>", comma: true },
41+
"-webkit-animation-fill-mode" : { multi: "none | forwards | backwards | both", comma: true },
4042
"-webkit-animation-iteration-count" : { multi: "<number> | infinite", comma: true },
4143
"-webkit-animation-name" : { multi: "none | <ident>", comma: true },
4244
"-webkit-animation-play-state" : { multi: "running | paused", comma: true },

tests/css/Validation.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,22 @@
6161

6262
var suite = new YUITest.TestSuite("Validation Tests");
6363

64+
suite.add(new ValidationTestCase({
65+
property: "animation-fill-mode",
66+
67+
valid: [
68+
"none",
69+
"forwards",
70+
"backwards",
71+
"both",
72+
"none, forwards"
73+
],
74+
75+
invalid: {
76+
"1px" : "Expected (none | forwards | backwards | both) but found '1px'."
77+
}
78+
}));
79+
6480
suite.add(new ValidationTestCase({
6581
property: "animation-name",
6682

0 commit comments

Comments
 (0)