Merge pull request #8906 from w3c/sync_9510076da4e555cb7d77d0d13e4142eb715079e8

Merge pull request #8906 from sync_9510076da4e555cb7d77d0d13e4142eb715079e8
diff --git a/html/semantics/forms/the-input-element/type-change-state.html b/html/semantics/forms/the-input-element/type-change-state.html
index d98b623..ed64cf7 100644
--- a/html/semantics/forms/the-input-element/type-change-state.html
+++ b/html/semantics/forms/the-input-element/type-change-state.html
@@ -49,7 +49,7 @@
           } else {
             input.value = "  foo\rbar  ";
             input.type = types[j].type;  // change state
-            if (types[j].sanitizedValue || types[j].sanitizedValue === "") {
+            if (types[i].type !== "color" && (types[j].sanitizedValue || types[j].sanitizedValue === "")) {
               assert_equals(input.value, types[j].sanitizedValue, "input.value should be " + types[j].sanitizedValue + " after change of state");
             } else if (types[i].sanitizedValue || types[i].sanitizedValue === "") {
               assert_equals(input.value, types[i].sanitizedValue, "input.value should be " + types[i].sanitizedValue + " after change of state");