Bug 18607 - test for anchor pseudo classes fails
Summary: test for anchor pseudo classes fails
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P4 Normal
Assignee: Nobody
URL: http://www.hixie.ch/tests/evil/css/cs...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-18 18:19 PDT by jasneet
Modified: 2011-10-20 04:56 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jasneet 2008-04-18 18:19:02 PDT
I Steps:
Go to 
http://www.hixie.ch/tests/evil/css/css21/tests/t0511-c21-pseud-anch-00-e-i.htm

II Issue:
The link changes to color red on clicking and then changes back to green after the click.It remains red if you hold the mouse button when you click. In IE, it doesn't change the color on clicking.

III Conclusion:
issue with anchor pseudo classes

IV Other browsers:
IE7: ok
FF3: not ok
Opera9.24: not ok

V Nightly tested: 32005

Similar links:
http://www.hixie.ch/tests/evil/css/css21/tests/t0511-c21-pseud-link-02-e.htm
http://www.hixie.ch/tests/evil/css/css21/tests/t0511-c21-pseud-link-03-e.htm
Comment 1 Robert Blaut 2008-06-02 03:46:47 PDT
In my opinion the test case is wrong according the latest CSS 2.1 CR specification:

"Note. In CSS1, the ':active' pseudo-class was mutually exclusive with ':link' and ':visited'. That is no longer the case. An element can be both ':visited' and ':active' (or ':link' and ':active') and the normal cascading rules determine which style declarations apply.

Note. Also note that in CSS1, the ':active' pseudo-class only applied to links."

So Webkit, Firefox and Opera correctly applied :active style to an A element, even it is not valid link. IE fails on it.

The bug report is incorrect in my opinion. Any other comments on this case?
Comment 2 Tab Atkins 2011-10-20 04:56:03 PDT
This test is invalid.  It assumes that <a> elements can't receive the :active pseudoclass unless they're links, which is incorrect.