Closed Bug 83031 Opened 24 years ago Closed 20 years ago

a:active shouldn't apply for <a name="...">

Categories

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

x86
Other
defect

Tracking

()

RESOLVED DUPLICATE of bug 65917
Future

People

(Reporter: Erich.Iseli, Assigned: pierre)

References

()

Details

(Keywords: css1, css2, Whiteboard: [CSS1-2.1])

Attachments

(1 file)

According to the W3C CSS1-testsuite, the A element doesn't have the active state when it has the name attribute instead of an href. The specs for CSS2 say: http://www.w3.org/TR/REC-CSS2/selector.html#dynamic-pseudo-classes "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." And: "CSS doesn't define which elements may be in the above states, or how the states are entered and left." Ok, then we have the big question: when is an element active? I did some tests and noticed that any element, say <small> can have this state: small:active {} But what does this mean? Makes sense to me that a clickable link, a button, a test-field and stuff can be activated. But just a plain element like <small> or even <span>? I doubt. Has there been a discussion on this topic?
Keywords: css1, css2
How about using a <span> and making it act like a button when something inside it is clicked (since a <span> _can_ have an onclick handler iirc). So the <span> has inset/outset border depending on state, shifting padding, etc. In that case having an :active state for it would be a good idea. The goal here is to make it possible for web developers to do what they want to do, not restrict them as much as possible.... Is there any reason we should _not_ support :active for all elements?
There has been significant discussion of this issue in bug 5693 and bug 65917. Opinions differ widely, and hopefully CSS3 will settle the matter.
Where's the discussion at about this topic?
Another (reasonable) possibility is that an element should only match :active if it can be activated -- i.e., if it's a link, form control, or something similar, or if it has an onclick/onmouse* handler.
*** Bug 101034 has been marked as a duplicate of this bug. ***
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.0
Why would you want to give an onclick handler to a <span> instead of actually using a <button>? Are you trying to make your page hard to use for keyboard- only users? Btw, this bug screws up the w3.org front page. If you click to the right of a list item, the entire row containing the list item gets a yellow background.
*** Bug 47748 has been marked as a duplicate of this bug. ***
Target Milestone: mozilla1.0 → mozilla1.1
Bulk moving from Moz1.1 to future-P1. I will pull from this list when scheduling work post Mozilla1.0.
Priority: P3 → P1
Target Milestone: mozilla1.1 → Future
Whiteboard: [CSS1-2.1]
*** Bug 133987 has been marked as a duplicate of this bug. ***
Whatever we decide for bug 65917 is what will fix (or invalidate) this bug. *** This bug has been marked as a duplicate of 65917 ***
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
VERIFIED DUPLICATE
Status: RESOLVED → VERIFIED
*** Bug 143676 has been marked as a duplicate of this bug. ***
(In reply to comment #11) > Whatever we decide for bug 65917 is what will fix (or invalidate) this bug. > > *** This bug has been marked as a duplicate of 65917 *** But 65917 has been marked 'fixed.' However, the problem mentioned in this bug has not been fixed, as can be seen from this CSS1 Test: http://www.w3.org/Style/CSS/Test/CSS1/current/sec21.htm Thus, I think this bug should be reopened.
Status: VERIFIED → REOPENED
Resolution: DUPLICATE → ---
The duplicate was correct. The test in question is known to be broken as is the whole CSS1 test suite (it tests in quirks mode), and the specification in question is superceded by CSS2.1 in any case. Please do not reopen this bug again. *** This bug has been marked as a duplicate of 65917 ***
Status: REOPENED → RESOLVED
Closed: 23 years ago20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: