Skip to content

Commit 286624d

Browse files
committed
Add text-decoration-skip
1 parent c954c72 commit 286624d

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

src/css/Properties.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ 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 ]",
438439
"text-emphasis" : 1,
439440
"text-height" : 1,
440441
"text-indent" : "<length> | <percentage>",

tests/css/Validation.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,6 +1488,28 @@ var YUITest = require("yuitest"),
14881488
}
14891489
}));
14901490

1491+
suite.add(new ValidationTestCase({
1492+
property: "text-decoration-skip",
1493+
1494+
valid: [
1495+
"none",
1496+
"objects",
1497+
"spaces",
1498+
"ink",
1499+
"edges",
1500+
"box-decoration",
1501+
"objects spaces",
1502+
"ink edges box-decoration",
1503+
"inherit",
1504+
"initial",
1505+
"unset"
1506+
],
1507+
1508+
invalid: {
1509+
"foo" : "Expected (none | [ objects || spaces || ink || edges || box-decoration ]) but found 'foo'."
1510+
}
1511+
}));
1512+
14911513
suite.add(new ValidationTestCase({
14921514
property: "text-rendering",
14931515

0 commit comments

Comments
 (0)