Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Initial CSS property value needs to respect the color display setting

  • Loading branch information...
commit de6cbe6c6bbd7b0ebe1d9e7a46ca66b5c07dbf7e 1 parent cbc142e
Sebastian Zartner authored September 06, 2012

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  extension/content/firebug/css/cssPanel.js
5  extension/content/firebug/css/cssPanel.js
@@ -1854,6 +1854,11 @@ CSSEditor.prototype = domplate(Firebug.InlineEditor.prototype,
1854 1854
             var propNameNode = prop.getElementsByClassName("cssPropName").item(0);
1855 1855
             var propName = propNameNode.textContent.toLowerCase();
1856 1856
             value = styleRule.style.getPropertyValue(propName);
  1857
+
  1858
+            if (Options.get("colorDisplay") == "hex")
  1859
+                value = Css.rgbToHex(value);
  1860
+            else if (Options.get("colorDisplay") == "hsl")
  1861
+                value = Css.rgbToHSL(value);
1857 1862
         }
1858 1863
         return value;
1859 1864
     },

0 notes on commit de6cbe6

Please sign in to comment.
Something went wrong with that request. Please try again.