Skip to content

Commit fd060da

Browse files
authored
Merge pull request #468 from w3c/color-mix
check operator properly, avoid duplicate comma in output
2 parents 1eafcad + d62800f commit fd060da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

org/w3c/css/values/ColorMix.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public static CssValue parseColorInterpolationMethod(ApplContext ac, CssExpressi
119119
return new CssValueList(values);
120120
} else {
121121
val = exp.getValue();
122+
op = exp.getOperator();
122123
if (val.getType() == CssTypes.CSS_IDENT) {
123124
id = val.getIdent();
124125
if (getAllowedValue(id, hueInterpolationMethodModifiers) != null) {
@@ -231,7 +232,7 @@ public String toString() {
231232
StringBuilder sb = new StringBuilder("color-mix(");
232233
boolean isFirst = true;
233234
if (color_interpolation_method != null) {
234-
sb.append(color_interpolation_method).append(", ");
235+
sb.append(color_interpolation_method);
235236
isFirst = false;
236237
}
237238
for (CssValue v : color_percentages) {

0 commit comments

Comments
 (0)