Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Issue 3407 (Add :focus to DOM node CSS Style viewing options)

  • Loading branch information...
commit cd2e4b8e2b44ebccc211ba3926ddb48b3b2333a8 1 parent c4dd557
@SebastianZ SebastianZ authored
View
10 extension/content/firebug/css/stylePanel.js
@@ -577,6 +577,16 @@ CSSStylePanel.prototype = Obj.extend(CSSStyleSheetPanel.prototype,
{
self.togglePseudoClassLock(":active");
}
+ },
+ {
+ label: "style.option.label.focus",
+ type: "checkbox",
+ checked: self.hasPseudoClassLock(":focus"),
+ tooltiptext: "style.option.tip.focus",
+ command: function()
+ {
+ self.togglePseudoClassLock(":focus");
+ }
}
);
}
View
7 extension/locale/en-US/firebug.properties
@@ -494,6 +494,13 @@ style.option.tip.active=Display :active pseudo-class styles
style.option.label.hover=:hover
style.option.tip.hover=Display :hover pseudo-class styles
+# LOCALIZATION NOTE (style.option.label.focus, style.option.tip.focus):
+# Style side panel option tooltip (located in tab's option menu). If the option is set to true,
+# the Style side panel will simulate the element being focused and therefore display
+# :focus pseudo-class styles
+style.option.label.focus=:focus
+style.option.tip.focus=Display :focus pseudo-class styles
+
# LOCALIZATION NOTE (css.label.Inspect_Declaration, css.tip.Inspect_Declaration):
# CSS panel/Style side panel context menu option. Allows inspecting a font face of a web font
# declaration inside the CSS panel
Please sign in to comment.
Something went wrong with that request. Please try again.