Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Issue 5826: Fonts are not displayed inside Style side panel

  • Loading branch information...
commit 8f0485aee2d530a7298cb94cf9ae284c4655fedb 1 parent 03b8fed
@simonlindholm simonlindholm authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 extension/content/firebug/css/stylePanel.js
View
12 extension/content/firebug/css/stylePanel.js
@@ -95,12 +95,12 @@ CSSStylePanel.prototype = Obj.extend(CSSStyleSheetPanel.prototype,
getSeparator: function(part)
{
- if (part.type == "otherProps")
- return " ";
-
if (part.lastFont || part.type == "important")
return "";
+ if (part.type == "otherProps")
+ return " ";
+
return ",";
},
@@ -827,7 +827,11 @@ function getFontPropValueParts(element, value, propName)
);
var matches = rePreFont.exec(value);
if (!matches)
- return;
+ {
+ // Non-simple font value, like "inherit", "status-bar" or
+ // "-moz-calc(12px) Arial" - just return the whole text.
+ return [{type: "otherProps", value: value, lastFont: true}];
+ }
var preProps = matches[0].slice(0, -1);
parts.push({type: "otherProps", value: preProps});
value = value.substr(matches[0].length);
Please sign in to comment.
Something went wrong with that request. Please try again.