Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/css/Properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ var Properties = module.exports = {
"border-color" : "<color>{1,4}",
"border-image" : 1,
"border-image-outset" : "[ <length> | <number> ]{1,4}",
"border-image-repeat" : "[ stretch | repeat | round ]{1,2}",
"border-image-repeat" : "[ stretch | repeat | round | space ]{1,2}",
"border-image-slice" : "<border-image-slice>",
"border-image-source" : "<image> | none",
"border-image-width" : "[ <length> | <percentage> | <number> | auto ]{1,4}",
Expand Down
14 changes: 14 additions & 0 deletions tests/css/Validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,20 @@ var YUITest = require("yuitest"),
}
}));

suite.add(new ValidationTestCase({
property: "border-image-repeat",

valid: [
"stretch",
"round stretch"
],

invalid: {
"foo": "Expected ([ stretch | repeat | round | space ]{1,2}) but found 'foo'.",
"round stretch foo": "Expected end of value but found 'foo'."
}
}));

suite.add(new ValidationTestCase({
property: "border-image-slice",

Expand Down