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)
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.)
Reporter | ||
Comment 1•25 years ago
|
||
Tried it in a recent M14 build, problem still exists.
Comment 2•25 years ago
|
||
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.)
Comment 3•25 years ago
|
||
Assigning to ekrock: 1/3 of Pierre's NEW bugs to help reduce his doomage factor
Assignee: pierre → ekrock
Assignee | ||
Comment 4•25 years ago
|
||
Reassigned back to me these bugs that shouldn't have left my list.
Assignee: ekrock → pierre
Comment 5•25 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•