Closed Bug 28926 Opened 25 years ago Closed 25 years ago

Wrong CSS selector wins

Categories

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

x86
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 24031

People

(Reporter: braden, Assigned: pierre)

References

()

Details

Attachments

(1 file)

Mozilla renders the second instance of "red in amaya" in blue. Amaya is right. The rulesets that affect this element are BLOCKQUOTE BLOCKQUOTE BLOCKQUOTE { color: blue } DIV > BLOCKQUOTE BLOCKQUOTE { color: red } Both of these selectors have a specificity of '030'. So, the last one declared wins--the text should be red.
*** This bug has been marked as a duplicate of 24031 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Oops, sorry for the dupe.
Status: RESOLVED → VERIFIED
Attached file testcase from levien.com (deleted) —
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: