Skip to content

Commit 036bd12

Browse files
committed
Merge pull request #36 from mattiacci/border-radius
Fix validation of border-radius
2 parents aecba50 + 30202da commit 036bd12

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/css/Properties.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ var Properties = {
163163
valid = ValidationTypes.isAny(expression, numeric);
164164
if (!valid) {
165165

166-
if (expression.peek() == "/" && count > 1 && !slash) {
166+
if (expression.peek() == "/" && count > 0 && !slash) {
167167
slash = true;
168168
max = count + 5;
169169
expression.next();

tests/css/Validation.js

+1
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@
316316
"5px",
317317
"25%",
318318
"5px 25%",
319+
"5px / 25%",
319320
"5px 25% / 7px 27%",
320321
"1px 2px 3px 4px / 5px 6px 7px 8px"
321322
],

0 commit comments

Comments
 (0)