 diff --git a/layout/style/nsCSSValue.cpp b/layout/style/nsCSSValue.cpp
 --- a/layout/style/nsCSSValue.cpp
 +++ b/layout/style/nsCSSValue.cpp
-@@ -1379,16 +1379,23 @@ nsCSSValue::AppendToString(nsCSSProperty
+@@ -1379,16 +1379,27 @@ nsCSSValue::AppendToString(nsCSSProperty
      nsAutoCString str;
      if (nsCSSProps::GetColorName(GetIntValue(), str)){
        AppendASCIItoUTF16(str, aResult);

   }
   else if (IsNumericColorUnit(unit)) {
+    bool outputCssNames = false;
+    nsresult rv;
+    nsCOMPtr<nsIPrefBranch> prefBranch = do_GetService(NS_PREFSERVICE_CONTRACTID, &rv);
+    if (NS_SUCCEEDED(rv) && prefBranch)
+      prefBranch->GetBoolPref("bluegriffon.css.colors.names.enabled", &outputCssNames);
+    bool serializeName = false;
+
     if (aSerialization == eNormalized ||
         unit == eCSSUnit_RGBColor ||

-        aResult.Append(comma);
-        aResult.AppendInt(NS_GET_B(color), 10);
-        if (showAlpha) {
-          aResult.Append(comma);
-          aResult.AppendFloat(nsStyleUtil::ColorComponentToFloat(a));
+            aResult.AppendInt(NS_GET_R(color), 10);
+            aResult.Append(comma);
+            aResult.AppendInt(NS_GET_G(color), 10);
+            aResult.Append(comma);
+            aResult.AppendInt(NS_GET_B(color), 10);
+            if (showAlpha) {
+              aResult.Append(comma);
+              aResult.AppendFloat(nsStyleUtil::ColorComponentToFloat(a));
+            }
+            aResult.Append(char16_t(')'));
+          }
         }
-        aResult.Append(char16_t(')'));
       }
