Skip to content

Commit cb334fe

Browse files
committed
as the alpha channel is optional, the output needs to care about this
1 parent fbf75b2 commit cb334fe

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

org/w3c/css/values/RGBA.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,11 @@ public String toString() {
138138
if (isCss3) {
139139
sb.append(RGB.functionname).append('(');
140140
sb.append(vr).append(' ');
141-
sb.append(vg).append(' ');
142-
sb.append(vb).append(" / ");
143-
sb.append(va).append(')');
141+
sb.append(vg).append(' ').append(vb);
142+
if (va != null) {
143+
sb.append(" / ").append(va);
144+
}
145+
sb.append(')');
144146
} else {
145147
sb.append(fname).append('(');
146148
sb.append(vr).append(", ");

0 commit comments

Comments
 (0)