Closed Bug 470771 Opened 16 years ago Closed 16 years ago

CSS :first-letter doesn't work with a class set by JavaScript

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 8253

People

(Reporter: liam, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5

Consider this CSS rule:
dt.test:first-letter {background-color: green;}

If the dt element is given the "test" class by JavaScript, the CSS rule will not be applied. If the class is set by the class attribute, the rule applies correctly. If the selector is "dt:first-letter", the rule applies correctly.

Reproducible: Always
Attached file HTML page demonstrates the problem (deleted) —
Thanks for reporting.
Status: UNCONFIRMED → RESOLVED
Closed: 16 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: