Index: third_party/WebKit/Source/core/css/StylePropertySerializer.cpp |
diff --git a/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp b/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp |
index bb49fdcb73eba225d796584313a83c89dc14e4c5..3b86029892426898b1b228412e1200b7cff64270 100644 |
--- a/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp |
+++ b/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp |
@@ -184,6 +184,8 @@ String StylePropertySerializer::getCustomPropertyText(const PropertyValueForSeri |
const CSSCustomPropertyDeclaration* value = toCSSCustomPropertyDeclaration(property.value()); |
result.append(value->name()); |
result.append(':'); |
+ if (!value->value()) |
+ result.append(' '); |
result.append(value->customCSSText()); |
if (property.isImportant()) |
result.append(" !important"); |