Skip to content

Commit

Permalink
Add text-decoration-skip
Browse files Browse the repository at this point in the history
  • Loading branch information
toptalo committed Dec 19, 2017
1 parent c954c72 commit 286624d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/css/Properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ var Properties = module.exports = {
"text-decoration-color" : "<text-decoration-color>",
"text-decoration-line" : "<text-decoration-line>",
"text-decoration-style" : "<text-decoration-style>",
"text-decoration-skip" : "none | [ objects || spaces || ink || edges || box-decoration ]",
"text-emphasis" : 1,
"text-height" : 1,
"text-indent" : "<length> | <percentage>",
Expand Down
22 changes: 22 additions & 0 deletions tests/css/Validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -1488,6 +1488,28 @@ var YUITest = require("yuitest"),
}
}));

suite.add(new ValidationTestCase({
property: "text-decoration-skip",

valid: [
"none",
"objects",
"spaces",
"ink",
"edges",
"box-decoration",
"objects spaces",
"ink edges box-decoration",
"inherit",
"initial",
"unset"
],

invalid: {
"foo" : "Expected (none | [ objects || spaces || ink || edges || box-decoration ]) but found 'foo'."
}
}));

suite.add(new ValidationTestCase({
property: "text-rendering",

Expand Down

0 comments on commit 286624d

Please sign in to comment.