diff --git a/src/css/Properties.js b/src/css/Properties.js index 053de93d..4826c0e1 100644 --- a/src/css/Properties.js +++ b/src/css/Properties.js @@ -437,6 +437,7 @@ var Properties = module.exports = { "text-decoration-style" : "", "text-decoration-skip" : "none | [ objects || spaces || ink || edges || box-decoration ]", "-webkit-text-decoration-skip" : "none | [ objects || spaces || ink || edges || box-decoration ]", + "text-underline-position" : "auto | [ under || [ left | right ] ]", "text-emphasis" : 1, "text-height" : 1, "text-indent" : " | ", diff --git a/tests/css/Validation.js b/tests/css/Validation.js index d6a19650..da1d524b 100644 --- a/tests/css/Validation.js +++ b/tests/css/Validation.js @@ -1518,7 +1518,7 @@ var YUITest = require("yuitest"), "edges", "box-decoration", "objects spaces ink" - ], + ], invalid: { "none objects" : "Expected end of value but found 'objects'.", @@ -1526,6 +1526,24 @@ var YUITest = require("yuitest"), } })); + suite.add(new ValidationTestCase({ + property: "text-underline-position", + + valid: [ + "auto", + "under", + "left", + "right", + "under left" + ], + + invalid: { + "auto under" : "Expected end of value but found 'under'.", + "left right" : "Expected end of value but found 'right'.", + "foo" : "Expected (auto | [ under || [ left | right ] ]) but found 'foo'." + } + })); + suite.add(new ValidationTestCase({ property: "text-rendering",