:-moz-focusring

Table of contents

  1. 1. Summary
  2. 2. Syntax
  3. 3. Example
  4. 4. See also
Table of contents
  1. 1. Summary
  2. 2. Syntax
  3. 3. Example
  4. 4. See also

« CSS « CSS Reference « CSS Reference:Mozilla Extensions

Introduced in Gecko 2

(Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)

Summary

:-moz-focusring is specified on an element if and only if it's currently focused and should have a focus ring drawn about it. The precise behavior may vary from platform to platform, depending on that platform's particular focus best practices.

Note: Keep in mind that not all focused elements will have this pseudo-selector specified; it's only applied when the element is both focused and should render a focus indicator.

Syntax

:-moz-focusring

Example

To specify the appearance of an element when it's focused, you can use this pseudo-selector like this:

mybutton:-moz-focusring {
  outline: 2px dotted;
}

See also

Tags (4)

Edit tags

Attachments (0)

 

Attach file