Closed Bug 308844 Opened 19 years ago Closed 19 years ago

CSS a:active on keyboard selection via tab not operational

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jay, Assigned: dbaron)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+

when one tabs to a link using the 'tab' key it should be - active - but isn't
pressing the - enter - or - return - key is then equivalent to clicking.

however this isn't the case

Reproducible: Always

Steps to Reproduce:
1.tab to the link in the test case
2.
3.

Actual Results:  
nothing

Expected Results:  
the link should change colour
OS: MacOS X → All
Hardware: Macintosh → All
IIRC, Internet Explorer for Windows sets :active if you tab to a link (in
addition to setting :focus).  Is that correct according to the spec?  Should
Gecko do the same?
The original Netscape implementation of alink, on which :active is based, was
just the color for between mouse down and mouse up.  IIRC, IE made it much more
like what CSS2 calls :focus, which persists after the mouse has been lifted. 
You're basically asking to make :active equal to :focus, which would suggest
that there wasn't a reason to add :focus.

The definition of :active is that:
# 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. 

Note that it's not *after* the element has been activated, but while it's being
activated.  So I really don't see any good reason to change behavior here. 
Pages that want to style focused links can use :focus.
Assignee: nobody → dbaron
Component: General → Style System (CSS)
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: