On Sep 17, 2009, at 7:28 PM, Alan Gresley wrote: > Note. > > <http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes> > > states, > > "The :focus pseudo-class applies while an element has the focus > (accepts > keyboard events or other forms of text input)." > > > Focus works when tabbing which seems different to the above spec.
:focus is also applied when the user *clicks* on a link with a pointing device. At the same moment, the :active state is applied (and in terms of styling overrides the :focus styling). If you follow any of the links at the bottom of this test page http://css-class.com/test/css/selectors/pseudo-class-active-focus-with-outline.htm then go back to the testpage, Gecko browsers will still show the (default) dotted outline. The link is still focussed (that is the correct behaviour, btw) Philippe --- Philippe Wittenbergh http://l-c-n.com/ ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
