diff --git a/src/css/Properties.js b/src/css/Properties.js index e2073048..d0e407b9 100644 --- a/src/css/Properties.js +++ b/src/css/Properties.js @@ -93,7 +93,7 @@ var Properties = module.exports = { "border-color" : "{1,4}", "border-image" : 1, "border-image-outset" : "[ | ]{1,4}", - "border-image-repeat" : "[ stretch | repeat | round ]{1,2}", + "border-image-repeat" : "[ stretch | repeat | round | space ]{1,2}", "border-image-slice" : "", "border-image-source" : " | none", "border-image-width" : "[ | | | auto ]{1,4}", diff --git a/tests/css/Validation.js b/tests/css/Validation.js index 72d82baa..2fa5c068 100644 --- a/tests/css/Validation.js +++ b/tests/css/Validation.js @@ -502,6 +502,23 @@ var YUITest = require("yuitest"), } })); + suite.add(new ValidationTestCase({ + property: "border-image-repeat", + + valid: [ + "stretch", + "repeat", + "round", + "space", + "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",