Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial CSS property value needs to respect the color display setting

  • Loading branch information...
commit de6cbe6c6bbd7b0ebe1d9e7a46ca66b5c07dbf7e 1 parent cbc142e
@SebastianZ SebastianZ authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 extension/content/firebug/css/cssPanel.js
View
5 extension/content/firebug/css/cssPanel.js
@@ -1854,6 +1854,11 @@ CSSEditor.prototype = domplate(Firebug.InlineEditor.prototype,
var propNameNode = prop.getElementsByClassName("cssPropName").item(0);
var propName = propNameNode.textContent.toLowerCase();
value = styleRule.style.getPropertyValue(propName);
+
+ if (Options.get("colorDisplay") == "hex")
+ value = Css.rgbToHex(value);
+ else if (Options.get("colorDisplay") == "hsl")
+ value = Css.rgbToHSL(value);
}
return value;
},
Please sign in to comment.
Something went wrong with that request. Please try again.