Closed Bug 131538 Opened 24 years ago Closed 24 years ago

CSS state :active is sometimes incorrectly overridden

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: stefan.huszics, Assigned: dbaron)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.9) Gecko/20020311 BuildID: 2002031104 On a html + CSS navbar I have specified different states in the following order. :link :visited :hover :focus :hover:focus :active However it is rendered like this :link :visited :hover :focus :active (here is the error) :hover:focus That is the :hover:focus rule is (incorrectly) overriding the :active state (which is specified later in the actuall CSS) If the :hover:focus rule is removed the active state shows correctly. The active state also shows correctly when you rightclick the link once you move the mouse "aways from a :hover state" while the contextmenu is still open. This shows that the :active state isn't "broken" just incorrectly overwritten by the :hover:focus rule Reproducible: Always
Invalid. If a rule has twe (pseudo-)classes it has a higher specificity than one with just one (pseudo-)class. See http://www.w3.org/TR/REC-CSS2/cascade.html#specificity
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
See also http://www.people.fas.harvard.edu/~dbaron/css/1999/09/links . Note that MSIE for Windows has bugs in this area.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.