Firebug has a minor bug in it’s css module regarding the calculation of specificity.
Update The bug has been resolved
Fixed in 1.5a22, http://getfirebug.com/releases.
What steps will reproduce the problem?
- add combined css rule (#bd a, #bd a.myclass)
- add css rule with specifity higher than the first rule of the combined selector and below specifity of the second rule of the combined selector (like #bd .myclass)
- add e.g. different color definitions to the rules
What is the expected result?
strike through the definitions of the single rule with the lower specifity
What do you see instead?
Firebug shows the css definitions of the single rule with higher specifity than the second selector of the combined rule > strikes the definition with the de facto higher specifity)
Which version of Firebug? (more specific than latest please): 1.4.2
Which version of Firefox? 3.0.13
On what operating system? Windows XP Sp2