Closed Bug 1373142 Opened 8 years ago Closed 8 years ago

css does not work when overridden with class attribute

Categories

(Firefox :: General, defect)

53 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jmichae3, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0 Build ID: 20170518000419 Steps to reproduce: <style> .b_on ul { } .b_on ul li { } .b_on ul li a:link { } .b_on ul li a:visited { } /*.b_on*/ .folder li { background-color:blue; list-style-type:none; } .b_on li:last-of-type { } </style> <div id='b' class='b_on'> <ul> <li class='folder currentListItem'><a href='/test/index.html' class='visitor'>unit tests</a></li> <li class='folder'><a href='/studies/index.html' class='visitor'>Bible study</a></li> <li>blah</li> </ul> </div> Actual results: folder displays gray just like regular li's it seems like the 'folder' class is not taking priority for some odd reason. unfortunately, I have no other good browsers to test with. I am on win7 x64. Expected results: the code should have made the folder blue. but no effect other than gray (which is how I have it set now for list items).
Summary: *cascading* part of cascading style sheets does not work when overridden with class attribute → css does not work when overridden with class attribute
Attachment #8877878 - Attachment mime type: text/plain → text/html
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Component: Untriaged → General
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: