Closed Bug 93316 Opened 24 years ago Closed 24 years ago

image border doesn't go active on mouse down

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 65917

People

(Reporter: olivier, Assigned: joki)

Details

Attachments

(2 files)

(nightly build 2001080206) The border of an image anchor does not change color on mouse down. The color remains the link color. Make a link that uses an image instead of text. Click on it, holding the mouse down for a bit to notice it. The border around the image that is the anchor does not change color. The border should change to the active color during the mouse down. Example: <html> <head><title>Image Active Color Test</title></head> <body> The border around this <a href="./"><img src="img.gif"></a> does not change to the active color when clicked.<br> This normal <a href="./">link</a> does however. </body> </html>
Attached image image for testcase (deleted) —
Attached file testcase (deleted) —
The problem is that the "going red" happens due to the following code in html.css: *|*:-moz-any-link:active { color: red; } In this case, it's the _img_ that's active, not the link. So that rule is not matched. This is a duplicate of bug 65917... That said, if :subject were accepted as part of CSS3 we could do something like: *|*:-moz-any-link:subject :active, |*:-moz-any-link:active { color: red; } to get the right effect... *** This bug has been marked as a duplicate of 65917 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
v!
Status: RESOLVED → VERIFIED
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: