Skip to content

Commit e6fe87e

Browse files
authored
Merge pull request #238 from toptalo/feature/border-image-repeat-space
Add `space` value for `border-image-repeat`
2 parents 5fbef11 + b5daba4 commit e6fe87e

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/css/Properties.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ var Properties = module.exports = {
9393
"border-color" : "<color>{1,4}",
9494
"border-image" : 1,
9595
"border-image-outset" : "[ <length> | <number> ]{1,4}",
96-
"border-image-repeat" : "[ stretch | repeat | round ]{1,2}",
96+
"border-image-repeat" : "[ stretch | repeat | round | space ]{1,2}",
9797
"border-image-slice" : "<border-image-slice>",
9898
"border-image-source" : "<image> | none",
9999
"border-image-width" : "[ <length> | <percentage> | <number> | auto ]{1,4}",

tests/css/Validation.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,23 @@ var YUITest = require("yuitest"),
502502
}
503503
}));
504504

505+
suite.add(new ValidationTestCase({
506+
property: "border-image-repeat",
507+
508+
valid: [
509+
"stretch",
510+
"repeat",
511+
"round",
512+
"space",
513+
"round stretch"
514+
],
515+
516+
invalid: {
517+
"foo": "Expected ([ stretch | repeat | round | space ]{1,2}) but found 'foo'.",
518+
"round stretch foo": "Expected end of value but found 'foo'."
519+
}
520+
}));
521+
505522
suite.add(new ValidationTestCase({
506523
property: "border-image-slice",
507524

0 commit comments

Comments
 (0)