@@ -901,6 +901,9 @@ public void rgbComma() throws Exception {
901901
902902 color ("foreground: rgb(255, 0, 153)" , "foreground: rgb(2.55e2, 0e0, 1.53e2)" );
903903
904+ color ("foreground: rgb(-255, 0, -153)" , "foreground: rgb(-255, -0, -153.0)" );
905+ color ("foreground: rgb(-100%, 0%, -60%)" , "foreground: rgb(-100%,-0%,-60%)" );
906+
904907 // alpha
905908 color ("foreground: rgb(10, 20, 30, 0.1)" , "foreground: rgb(10,20,30,0.1)" );
906909 color ("foreground: rgb(10, 20, 30, 0.1)" , "foreground: rgb( 10, 20, 30, 0.1 )" );
@@ -910,6 +913,9 @@ public void rgbComma() throws Exception {
910913 color ("foreground: rgb(10%, 20%, 30%, 7%)" , "foreground: rgb(10%, 20%, 30%, 7%)" );
911914 color ("foreground: rgb(10%, 20%, 30%, 0.13%)" , "foreground: rgb(10%, 20%, 30%, 1.3e-1%)" );
912915 color ("foreground: rgb(10%, 20%, 30%, 0.5)" , "foreground: rgb(10%, 20%, 30%, 0.5)" );
916+
917+ color ("foreground: rgb(-255, -10, -153, -0.5)" , "foreground: rgb(-255, -10, -153.0, -0.5)" );
918+ color ("foreground: rgb(-100%, -10%, -60%, -7%)" , "foreground: rgb(-100%,-10%,-60%,-7%)" );
913919 }
914920
915921 /**
@@ -928,6 +934,9 @@ public void rgbBlank() throws Exception {
928934
929935 color ("foreground: rgb(255 0 153)" , "foreground: rgb(2.55e2 0e0 1.53e2)" );
930936
937+ color ("foreground: rgb(-255 0 -153)" , "foreground: rgb(-255 -0 -153.0)" );
938+ color ("foreground: rgb(-100% 0% -60%)" , "foreground: rgb(-100% -0% -60%)" );
939+
931940 // alpha
932941 color ("foreground: rgb(10 20 30 / 0.1)" , "foreground: rgb(10 20 30/0.1)" );
933942 color ("foreground: rgb(10 20 30 / 0.1)" , "foreground: rgb( 10 20 30 / 0.1 )" );
@@ -939,6 +948,9 @@ public void rgbBlank() throws Exception {
939948 color ("foreground: rgb(10% 20% 30% / 0.5)" , "foreground: rgb(10% 20% 30% / 0.5)" );
940949
941950 color ("foreground: rgb(10% 20% 30% / none)" , "foreground: rgb(10% 20% 30% / none)" );
951+
952+ color ("foreground: rgb(-255 -10 -153 / -0.5)" , "foreground: rgb(-255 -10 -153.0 / -0.5)" );
953+ color ("foreground: rgb(-100% -10% -60% / -7%)" , "foreground: rgb(-100% -10% -60%/-7%)" );
942954 }
943955
944956 /**
@@ -975,6 +987,9 @@ public void rgbaComma() throws Exception {
975987
976988 color ("foreground: rgba(255, 0, 153)" , "foreground: rgba(2.55e2, 0e0, 1.53e2)" );
977989
990+ color ("foreground: rgba(-255, 0, -153)" , "foreground: rgba(-255, -0, -153.0)" );
991+ color ("foreground: rgba(-100%, 0%, -60%)" , "foreground: rgba(-100%,-0%,-60%)" );
992+
978993 // alpha
979994 color ("foreground: rgba(10, 20, 30, 0.1)" , "foreground: rgba(10,20,30,0.1)" );
980995 color ("foreground: rgba(10, 20, 30, 0.1)" , "foreground: rgba( 10, 20, 30, 0.1 )" );
@@ -984,6 +999,9 @@ public void rgbaComma() throws Exception {
984999 color ("foreground: rgba(10%, 20%, 30%, 7%)" , "foreground: rgba(10%, 20%, 30%, 7%)" );
9851000 color ("foreground: rgba(10%, 20%, 30%, 0.13%)" , "foreground: rgba(10%, 20%, 30%, 1.3e-1%)" );
9861001 color ("foreground: rgba(10%, 20%, 30%, 0.5)" , "foreground: rgba(10%, 20%, 30%, 0.5)" );
1002+
1003+ color ("foreground: rgba(-255, -10, -153, -0.5)" , "foreground: rgba(-255, -10, -153.0, -0.5)" );
1004+ color ("foreground: rgba(-100%, -10%, -60%, -7%)" , "foreground: rgba(-100%,-10%,-60%,-7%)" );
9871005 }
9881006
9891007 /**
@@ -1002,6 +1020,9 @@ public void rgbaBlank() throws Exception {
10021020
10031021 color ("foreground: rgba(255 0 153)" , "foreground: rgba(2.55e2 0e0 1.53e2)" );
10041022
1023+ color ("foreground: rgba(-255 0 -153)" , "foreground: rgba(-255 -0 -153.0)" );
1024+ color ("foreground: rgba(-100% 0% -60%)" , "foreground: rgba(-100% -0% -60%)" );
1025+
10051026 // alpha
10061027 color ("foreground: rgba(10 20 30 / 0.1)" , "foreground: rgba(10 20 30/0.1)" );
10071028 color ("foreground: rgba(10 20 30 / 0.1)" , "foreground: rgba( 10 20 30 / 0.1 )" );
@@ -1013,6 +1034,9 @@ public void rgbaBlank() throws Exception {
10131034 color ("foreground: rgba(10% 20% 30% / 0.5)" , "foreground: rgba(10% 20% 30% / 0.5)" );
10141035
10151036 color ("foreground: rgba(10% 20% 30% / none)" , "foreground: rgba(10% 20% 30% / none)" );
1037+
1038+ color ("foreground: rgba(-255 -10 -153 / -0.5)" , "foreground: rgba(-255 -10 -153.0 / -0.5)" );
1039+ color ("foreground: rgba(-100% -10% -60% / -7%)" , "foreground: rgba(-100% -10% -60%/-7%)" );
10161040 }
10171041
10181042 /**
@@ -1135,10 +1159,6 @@ public void hslComma() throws Exception {
11351159 color ("foreground: hsl(255grad, 0%, 15.37%)" , "foreground: hsl(2.55e2grad, 0e0%, 1537e-2%)" );
11361160 color ("foreground: hsl(255turn, 0%, 15.37%)" , "foreground: hsl(2.55e2turn, 0e0%, 1537e-2%)" );
11371161
1138- color ("foreground: hsl(none 0% 60%)" , "foreground: hsl(none 0% 60%)" );
1139- color ("foreground: hsl(100deg none 60%)" , "foreground: hsl(100deg none 60%)" );
1140- color ("foreground: hsl(100deg 0% none)" , "foreground: hsl(100deg 0% none)" );
1141-
11421162 // alpha
11431163 color ("foreground: hsl(270, 60%, 70%, 0.1)" , "foreground: hsl(270,60%,70%,0.1)" );
11441164 color ("foreground: hsl(-270, 60%, 70%, 0.1)" , "foreground: hsl(-270, 60%, 70%, 0.1)" );
0 commit comments