Skip to content

Commit 3654156

Browse files
authored
Merge pull request #221 from ideadapt/w3c-css-indexes
support css3 all property
2 parents ab482f8 + ee71005 commit 3654156

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/css/Properties.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ var Properties = module.exports = {
99
"align-items" : "flex-start | flex-end | center | baseline | stretch",
1010
"align-content" : "flex-start | flex-end | center | space-between | space-around | stretch",
1111
"align-self" : "auto | flex-start | flex-end | center | baseline | stretch",
12+
"all" : "initial | inherit | unset",
1213
"-webkit-align-items" : "flex-start | flex-end | center | baseline | stretch",
1314
"-webkit-align-content" : "flex-start | flex-end | center | space-between | space-around | stretch",
1415
"-webkit-align-self" : "auto | flex-start | flex-end | center | baseline | stretch",

tests/css/Validation.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,20 @@ var YUITest = require("yuitest"),
107107
}
108108
}));
109109

110+
suite.add(new ValidationTestCase({
111+
property: "all",
112+
113+
valid: [
114+
"unset",
115+
"initial",
116+
"inherit"
117+
],
118+
119+
invalid: {
120+
"foo" : "Expected (initial | inherit | unset) but found 'foo'."
121+
}
122+
}));
123+
110124
suite.add(new ValidationTestCase({
111125
property: "animation-direction",
112126

0 commit comments

Comments
 (0)