Skip to content

Commit e98b484

Browse files
committed
Fix formal syntax of text-decoration-skip to fit current CSS Text Decoration Module Level 3 [CR]
[CSS Text Decoration Module Level 3](https://www.w3.org/TR/css-text-decor-3/#text-decoration-skip-property)
1 parent b5873f6 commit e98b484

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
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 | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]",
439-
"-webkit-text-decoration-skip" : "none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]",
438+
"text-decoration-skip" : "none | [ objects || spaces || ink || edges || box-decoration ]",
439+
"-webkit-text-decoration-skip" : "none | [ objects || spaces || ink || edges || box-decoration ]",
440440
"text-emphasis" : 1,
441441
"text-height" : 1,
442442
"text-indent" : "<length> | <percentage>",

tests/css/Validation.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,16 +1494,16 @@ var YUITest = require("yuitest"),
14941494
valid: [
14951495
"none",
14961496
"objects",
1497+
"spaces",
1498+
"ink",
14971499
"edges",
14981500
"box-decoration",
1499-
"spaces",
1500-
"leading-spaces trailing-spaces",
1501-
"objects leading-spaces trailing-spaces",
1502-
"objects edges box-decoration"
1501+
"objects spaces ink"
15031502
],
15041503

15051504
invalid: {
1506-
"foo" : "Expected (none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]) but found 'foo'."
1505+
"none objects" : "Expected end of value but found 'objects'.",
1506+
"foo" : "Expected (none | [ objects || spaces || ink || edges || box-decoration ]) but found 'foo'."
15071507
}
15081508
}));
15091509

@@ -1513,16 +1513,16 @@ var YUITest = require("yuitest"),
15131513
valid: [
15141514
"none",
15151515
"objects",
1516+
"spaces",
1517+
"ink",
15161518
"edges",
15171519
"box-decoration",
1518-
"spaces",
1519-
"leading-spaces trailing-spaces",
1520-
"objects leading-spaces trailing-spaces",
1521-
"objects edges box-decoration"
1520+
"objects spaces ink"
15221521
],
15231522

15241523
invalid: {
1525-
"foo" : "Expected (none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]) but found 'foo'."
1524+
"none objects" : "Expected end of value but found 'objects'.",
1525+
"foo" : "Expected (none | [ objects || spaces || ink || edges || box-decoration ]) but found 'foo'."
15261526
}
15271527
}));
15281528

0 commit comments

Comments
 (0)