Closed Bug 25696 Opened 25 years ago Closed 25 years ago

Active links don't style properly

Categories

(Core :: CSS Parsing and Computation, defect, P3)

PowerPC
Mac System 8.6
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: inquisition, Assigned: pierre)

Details

Given the following code:

<STYLE>
A:link {color:rgb(255,75,116);text-decoration:none;}
A:active {color:rgb(255,160,116);text-decoration:none;border-width:2px;border-
style:inset;border-color:gray;}
A:hover {border-width:2px;border-style:outset;border-color:gray;}
A:focus {outline:none;}
</STYLE>

<P><A HREF="foobarexam.html">Link</A>

...link should have outset on mouseover, changing to inset when clicked (think 
"button"). Instead, link retains outset when clicked. Trying other border-style 
types has identical effect; link retains mouseover appearance instead of 
switching to active appearance when clicked.

(Using final M12 release, but I have no reason to think that this bug has been 
found and addressed since then.)
Tried it in a recent M14 build, problem still exists.

IMO, this bug is INVALID.  When you are both hovering over an element and
clicking on it, it is in both the :hover and :active states.  Since the :hover
rule occurs later in the stylesheet, it takes precedence.  (IE5 has buggy
handling of dynamic pseudo-classes that doesn't fit in with the CSS cascading
rules.)
Assigning to ekrock: 1/3 of Pierre's NEW bugs to help reduce his doomage factor
Assignee: pierre → ekrock
Reassigned back to me these bugs that shouldn't have left my list.
Assignee: ekrock → pierre
David is right. Notice also that when you click on the link, then move the mouse 
off of the link (while mouse-button still pressed) the link is now active and 
NOT hover, and the display is changed to inset. When you hover over the link 
again, it is displayed with the hover rule. 

(Also, As David suggested, reversing the order of the A:hover and A:active rules 
gives the desired behavior)

marking bug INVALID.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Verified invalid
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.