Permalink
Browse files

Merge branch 'master' of github.com:firebug/firebug

  • Loading branch information...
2 parents c0a6a04 + e3cd496 commit 551214136eca8d0a5a3e1855b6457ea51c1434e0 @janodvarko janodvarko committed May 30, 2012
Showing with 8 additions and 3 deletions.
  1. +6 −1 extension/content/firebug/lib/css.js
  2. +2 −2 tests/content/html/5504/issue5504.js
@@ -708,7 +708,12 @@ Css.rgbToHex = function(value)
Css.rgbToHSL = function(value)
{
return value.replace(/\brgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(,\s*(\d.\d+|\d))?\)/gi,
- function(_, r, g, b, _, a) {
+ function(_, r, g, b, _, a)
+ {
+ r = parseInt(r);
+ g = parseInt(g);
+ b = parseInt(b);
+
var gray = (r == g && g == b);
r /= 255;
@@ -7,7 +7,7 @@ function runTest()
FBTest.openFirebug();
var panel = FBTest.selectPanel("html");
- // Get the selected elemetn and execute "New Attribute" action on it.
+ // Get the selected element and execute "New Attribute" action on it.
var nodeBox = getSelectedNodeBox();
FBTest.executeContextMenuCommand(nodeBox, "htmlNewAttribute", function()
{
@@ -18,7 +18,7 @@ function runTest()
});
}
-// xxxHonza: use the one from FBTest
+// xxxHonza: use the one from FBTest (should be in FBTest 1.10b5)
function getSelectedNodeBox()
{
var panel = FBTest.getPanel("html");

0 comments on commit 5512141

Please sign in to comment.