Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit cd2e4b8e2b44ebccc211ba3926ddb48b3b2333a8 1 parent c4dd557
Sebastian Zartner authored May 24, 2012
10  extension/content/firebug/css/stylePanel.js
@@ -577,6 +577,16 @@ CSSStylePanel.prototype = Obj.extend(CSSStyleSheetPanel.prototype,
577 577
                     {
578 578
                         self.togglePseudoClassLock(":active");
579 579
                     }
  580
+                },
  581
+                {
  582
+                    label: "style.option.label.focus",
  583
+                    type: "checkbox",
  584
+                    checked: self.hasPseudoClassLock(":focus"),
  585
+                    tooltiptext: "style.option.tip.focus",
  586
+                    command: function()
  587
+                    {
  588
+                        self.togglePseudoClassLock(":focus");
  589
+                    }
580 590
                 }
581 591
             );
582 592
         }
7  extension/locale/en-US/firebug.properties
@@ -494,6 +494,13 @@ style.option.tip.active=Display :active pseudo-class styles
494 494
 style.option.label.hover=:hover
495 495
 style.option.tip.hover=Display :hover pseudo-class styles
496 496
 
  497
+# LOCALIZATION NOTE (style.option.label.focus, style.option.tip.focus):
  498
+# Style side panel option tooltip (located in tab's option menu). If the option is set to true,
  499
+# the Style side panel will simulate the element being focused and therefore display
  500
+# :focus pseudo-class styles
  501
+style.option.label.focus=:focus
  502
+style.option.tip.focus=Display :focus pseudo-class styles
  503
+
497 504
 # LOCALIZATION NOTE (css.label.Inspect_Declaration, css.tip.Inspect_Declaration):
498 505
 # CSS panel/Style side panel context menu option. Allows inspecting a font face of a web font
499 506
 # declaration inside the CSS panel

0 notes on commit cd2e4b8

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