Skip to content

Commit 7433cb0

Browse files
authored
Merge pull request #245 from toptalo/feature/text-underline-position
Add `text-underline-position`
2 parents cce5eab + a2b38d5 commit 7433cb0

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

src/css/Properties.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ var Properties = module.exports = {
437437
"text-decoration-style" : "<text-decoration-style>",
438438
"text-decoration-skip" : "none | [ objects || spaces || ink || edges || box-decoration ]",
439439
"-webkit-text-decoration-skip" : "none | [ objects || spaces || ink || edges || box-decoration ]",
440+
"text-underline-position" : "auto | [ under || [ left | right ] ]",
440441
"text-emphasis" : 1,
441442
"text-height" : 1,
442443
"text-indent" : "<length> | <percentage>",

tests/css/Validation.js

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1518,14 +1518,32 @@ var YUITest = require("yuitest"),
15181518
"edges",
15191519
"box-decoration",
15201520
"objects spaces ink"
1521-
],
1521+
],
15221522

15231523
invalid: {
15241524
"none objects" : "Expected end of value but found 'objects'.",
15251525
"foo" : "Expected (none | [ objects || spaces || ink || edges || box-decoration ]) but found 'foo'."
15261526
}
15271527
}));
15281528

1529+
suite.add(new ValidationTestCase({
1530+
property: "text-underline-position",
1531+
1532+
valid: [
1533+
"auto",
1534+
"under",
1535+
"left",
1536+
"right",
1537+
"under left"
1538+
],
1539+
1540+
invalid: {
1541+
"auto under" : "Expected end of value but found 'under'.",
1542+
"left right" : "Expected end of value but found 'right'.",
1543+
"foo" : "Expected (auto | [ under || [ left | right ] ]) but found 'foo'."
1544+
}
1545+
}));
1546+
15291547
suite.add(new ValidationTestCase({
15301548
property: "text-rendering",
15311549

0 commit comments

Comments
 (0)