On Sep 6, 2010, at 6:51 PM, Alan Gresley wrote: >>> The reverse is true with :active. The test shows that WebKit does not show >>> :active when tabbing. Selecting a link with the mouse works. >> That last paragraph is not really correct. WebKit shows the reddish >> background when clicking the link (mouse) or, once the link is focussed (tab >> to it), hitting the return key. It does show the background-colour briefly >> (more so than what Gecko shows). > > The :active in the last test does not work in Safari at my end when tabbing. > Tested in Version 5.0.1 (7533.17.8) on Windows 7.
when you tab to a link, it receives focus, the :focus pseudo-class applies. When you click on a link, or after tabbing to it, press the 'return' key, the :active pseudo-class applies. Just tabbing to your link in your test case will not trigger the :active pseudo-class. You have to _do_ something -user-interation- with that ink to trigger the pseudo-class. It is also possible that the action triggered by the link happens to fast for you to see the effect of the pseudo-class. In most cases I have to click + hold down the (left) mouse button to actually see the effect of the :active state. quote from the spec: > 'The :active pseudo-class applies while an element is being activated by the > user. For example, between the times the user presses the mouse button and > releases it.' 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/
