Composite visited hides active pseudo-class.

VERIFIED INVALID

Status

()

VERIFIED INVALID
17 years ago
17 years ago

People

(Reporter: jacobs, Assigned: dbaron)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

17 years ago
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530
BuildID:    2002053012

HTML uses CSS stylesheet that defines 
A.defined:visited { color: purple } and A:active { color: lime }.
The HTML contains an anchor with class="defined".  Only the first
activation results in a lime color.


Reproducible: Always
Steps to Reproduce:
1.Navigate to view the attached HTML.
2.Edit=>Preferences menu item.
3.In the Preferences dialog, click on category Navigator->History.
4.In Preferences, click on the Clear History button.
5.View=>Reload menu item.
6.Click on 'Anchor class="defined"'.  Color will change from
  red to lime to red again.
7.View=>Reload.  Color of the anchor will change to purple.
8.Click on 'Anchor class="defined"' again.  Color will not change
  to lime as it should.

Actual Results:  The anchor marked 'Anchor class="defined"' will only change it's
color to lime when it is active the first time.

Expected Results:  The anchor marked 'Anchor class="defined"' should change it's
color to lime every time it is activated.
(Reporter)

Comment 1

17 years ago
Created attachment 87086 [details]
Test case.

Comment 2

17 years ago
Mozilla is behaving correctly here. The order of definitions is only used as a 
tie breaker for equally specific rules. 

http://www.w3.org/TR/REC-CSS2/cascade.html#cascading-order

"if two rules have the same weight, origin and specificity, the latter 
specified wins". This is not the case here: including the class makes the rule 
more specific so it wins over the later rule.

Updated

17 years ago
QA Contact: petersen → moied

Comment 3

17 years ago
Based on Comment #2 From Richard Brodie marking WFM, Reporter: Please reopen if
you disagree.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → WORKSFORME
Yes, it's invalid, not worksforme, and it also belongs in the style system
component.
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
.
Assignee: attinasi → dbaron
Component: Layout → Style System
QA Contact: moied → ian
Invalid, per comment 2.  
Status: UNCONFIRMED → RESOLVED
Last Resolved: 17 years ago17 years ago
Resolution: --- → INVALID

Comment 7

17 years ago
verified -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.