Skip to content

Commit 4bf70c7

Browse files
committed
Merge pull request #184 from cscott/background-repeat
Allow comma, background-repeat
2 parents 26d1620 + feeca36 commit 4bf70c7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/css/Properties.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ var Properties = {
9191
"background-image" : { multi: "<bg-image>", comma: true },
9292
"background-origin" : { multi: "<box>", comma: true },
9393
"background-position" : { multi: "<bg-position>", comma: true },
94-
"background-repeat" : { multi: "<repeat-style>" },
94+
"background-repeat" : { multi: "<repeat-style>", comma: true },
9595
"background-size" : { multi: "<bg-size>", comma: true },
9696
"baseline-shift" : "baseline | sub | super | <percentage> | <length>",
9797
"behavior" : 1,

tests/css/Validation.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,15 @@
248248
"no-repeat",
249249
"repeat repeat",
250250
"repeat space",
251-
"no-repeat round"
251+
"no-repeat round",
252+
"repeat-x, repeat-y, space", // PR #103
253+
"repeat space, no-repeat round"
252254
],
253255

254256
invalid: {
255257
"foo" : "Expected (<repeat-style>) but found 'foo'.",
256-
"no-repeat round 1px" : "Expected (<repeat-style>) but found 'no-repeat round 1px'."
258+
"repeat-x repeat-y" : "Expected end of value but found 'repeat-y'.",
259+
"no-repeat round 1px" : "Expected end of value but found '1px'."
257260

258261
}
259262
}));

0 commit comments

Comments
 (0)