File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -437,6 +437,7 @@ var Properties = module.exports = {
437
437
"text-decoration-style" : "<text-decoration-style>" ,
438
438
"text-decoration-skip" : "none | [ objects || spaces || ink || edges || box-decoration ]" ,
439
439
"-webkit-text-decoration-skip" : "none | [ objects || spaces || ink || edges || box-decoration ]" ,
440
+ "text-underline-position" : "auto | [ under || [ left | right ] ]" ,
440
441
"text-emphasis" : 1 ,
441
442
"text-height" : 1 ,
442
443
"text-indent" : "<length> | <percentage>" ,
Original file line number Diff line number Diff line change @@ -1518,14 +1518,32 @@ var YUITest = require("yuitest"),
1518
1518
"edges" ,
1519
1519
"box-decoration" ,
1520
1520
"objects spaces ink"
1521
- ] ,
1521
+ ] ,
1522
1522
1523
1523
invalid : {
1524
1524
"none objects" : "Expected end of value but found 'objects'." ,
1525
1525
"foo" : "Expected (none | [ objects || spaces || ink || edges || box-decoration ]) but found 'foo'."
1526
1526
}
1527
1527
} ) ) ;
1528
1528
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
+
1529
1547
suite . add ( new ValidationTestCase ( {
1530
1548
property : "text-rendering" ,
1531
1549
You can’t perform that action at this time.
0 commit comments