@@ -1387,6 +1387,45 @@ var YUITest = require("yuitest"),
13871387 suite . add ( new ValidationTestCase ( {
13881388 property : "text-decoration" ,
13891389
1390+ valid : [
1391+ "none" ,
1392+ "underline red" ,
1393+ "underline wavy red" ,
1394+ "wavy" ,
1395+ "wavy red" ,
1396+ "red"
1397+ ] ,
1398+
1399+ invalid : {
1400+ "underline underline" : "Expected end of value but found 'underline'." ,
1401+ "underline wavy dotted" : "Expected end of value but found 'dotted'." ,
1402+ "underline wavy red purple" : "Expected end of value but found 'purple'." ,
1403+ "wavy dotted" : "Expected end of value but found 'dotted'." ,
1404+ "wavy red purple" : "Expected end of value but found 'purple'." ,
1405+ "red purple" : "Expected end of value but found 'purple'." ,
1406+ "foo" : "Expected (<text-decoration-line> || <text-decoration-style> || <text-decoration-color>) but found 'foo'."
1407+ }
1408+ } ) ) ;
1409+
1410+ suite . add ( new ValidationTestCase ( {
1411+ property : "text-decoration-color" ,
1412+
1413+ valid : [
1414+ "red" ,
1415+ "#f00" ,
1416+ "transparent" ,
1417+ "rgba(255, 128, 128, 0.5)"
1418+ ] ,
1419+
1420+ invalid : {
1421+ "foo" : "Expected (<color>) but found 'foo'." ,
1422+ "invert" : "Expected (<color>) but found 'invert'."
1423+ }
1424+ } ) ) ;
1425+
1426+ suite . add ( new ValidationTestCase ( {
1427+ property : "text-decoration-line" ,
1428+
13901429 valid : [
13911430 "none" ,
13921431 "underline" ,
@@ -1402,6 +1441,23 @@ var YUITest = require("yuitest"),
14021441 }
14031442 } ) ) ;
14041443
1444+ suite . add ( new ValidationTestCase ( {
1445+ property : "text-decoration-style" ,
1446+
1447+ valid : [
1448+ "solid" ,
1449+ "double" ,
1450+ "dotted" ,
1451+ "dashed" ,
1452+ "wavy"
1453+ ] ,
1454+
1455+ invalid : {
1456+ "solid double" : "Expected end of value but found 'double'." ,
1457+ "foo" : "Expected (solid | double | dotted | dashed | wavy) but found 'foo'."
1458+ }
1459+ } ) ) ;
1460+
14051461 suite . add ( new ValidationTestCase ( {
14061462 property : "text-rendering" ,
14071463
0 commit comments