Closed Bug 150575 Opened 23 years ago Closed 23 years ago

Composite visited hides active pseudo-class.

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: jacobs, Assigned: dbaron)

Details

Attachments

(1 file)

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.
Attached file Test case.
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.
QA Contact: petersen → moied
Based on Comment #2 From Richard Brodie marking WFM, Reporter: Please reopen if you disagree.
Status: UNCONFIRMED → RESOLVED
Closed: 23 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
Closed: 23 years ago23 years ago
Resolution: --- → INVALID
verified -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: