Skip to content

Commit 1295ba6

Browse files
authored
Merge pull request #242 from toptalo/feature/text-decoration-skip
Add text-decoration-skip
2 parents c954c72 + e98b484 commit 1295ba6

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

src/css/Properties.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +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 | [ objects || spaces || ink || edges || box-decoration ]",
438440
"text-emphasis" : 1,
439441
"text-height" : 1,
440442
"text-indent" : "<length> | <percentage>",

tests/css/Validation.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,6 +1488,44 @@ 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 ink"
1502+
],
1503+
1504+
invalid: {
1505+
"none objects" : "Expected end of value but found 'objects'.",
1506+
"foo" : "Expected (none | [ objects || spaces || ink || edges || box-decoration ]) but found 'foo'."
1507+
}
1508+
}));
1509+
1510+
suite.add(new ValidationTestCase({
1511+
property: "-webkit-text-decoration-skip",
1512+
1513+
valid: [
1514+
"none",
1515+
"objects",
1516+
"spaces",
1517+
"ink",
1518+
"edges",
1519+
"box-decoration",
1520+
"objects spaces ink"
1521+
],
1522+
1523+
invalid: {
1524+
"none objects" : "Expected end of value but found 'objects'.",
1525+
"foo" : "Expected (none | [ objects || spaces || ink || edges || box-decoration ]) but found 'foo'."
1526+
}
1527+
}));
1528+
14911529
suite.add(new ValidationTestCase({
14921530
property: "text-rendering",
14931531

0 commit comments

Comments
 (0)