Skip to content

Commit

Permalink
Initial CSS property value needs to respect the color display setting
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianZ committed Sep 6, 2012
1 parent cbc142e commit de6cbe6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extension/content/firebug/css/cssPanel.js
Expand Up @@ -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;
},
Expand Down

0 comments on commit de6cbe6

Please sign in to comment.