Skip to content

Commit b5873f6

Browse files
committed
Fix Formal Syntax
1 parent 1bfbaeb commit b5873f6

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

src/css/Properties.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,8 @@ var Properties = module.exports = {
435435
"text-decoration-color" : "<text-decoration-color>",
436436
"text-decoration-line" : "<text-decoration-line>",
437437
"text-decoration-style" : "<text-decoration-style>",
438-
"text-decoration-skip" : "none | [ objects || spaces || ink || edges || box-decoration ]",
439-
"-webkit-text-decoration-skip" : "none | skip",
438+
"text-decoration-skip" : "none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]",
439+
"-webkit-text-decoration-skip" : "none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]",
440440
"text-emphasis" : 1,
441441
"text-height" : 1,
442442
"text-indent" : "<length> | <percentage>",

tests/css/Validation.js

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,19 +1494,16 @@ var YUITest = require("yuitest"),
14941494
valid: [
14951495
"none",
14961496
"objects",
1497-
"spaces",
1498-
"ink",
14991497
"edges",
15001498
"box-decoration",
1501-
"objects spaces",
1502-
"ink edges box-decoration",
1503-
"inherit",
1504-
"initial",
1505-
"unset"
1499+
"spaces",
1500+
"leading-spaces trailing-spaces",
1501+
"objects leading-spaces trailing-spaces",
1502+
"objects edges box-decoration"
15061503
],
15071504

15081505
invalid: {
1509-
"foo" : "Expected (none | [ objects || spaces || ink || edges || box-decoration ]) but found 'foo'."
1506+
"foo" : "Expected (none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]) but found 'foo'."
15101507
}
15111508
}));
15121509

@@ -1515,12 +1512,17 @@ var YUITest = require("yuitest"),
15151512

15161513
valid: [
15171514
"none",
1518-
"skip"
1519-
],
1515+
"objects",
1516+
"edges",
1517+
"box-decoration",
1518+
"spaces",
1519+
"leading-spaces trailing-spaces",
1520+
"objects leading-spaces trailing-spaces",
1521+
"objects edges box-decoration"
1522+
],
15201523

15211524
invalid: {
1522-
"skip foo" : "Expected end of value but found 'foo'.",
1523-
"foo" : "Expected (none | skip) but found 'foo'."
1525+
"foo" : "Expected (none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]) but found 'foo'."
15241526
}
15251527
}));
15261528

0 commit comments

Comments
 (0)