I'm having trouble understanding why my CSS isn't being styled according to the way I understand the specificity rules. According to my reading across the web (including this calculator), the *
(matches everything) has no specificity, while an element (e.g. h1
,h2
, etc) has is fourth most important, while a class is third most important. But that's not what I'm seeing in the Chrome debugger.
From the looks of it, the *
has come out on top, followed by the h5
, then two more *
matches and then a match for the class .orange
. Shouldn't the *
be after everything else? And shouldn't the .orange
win out over the h5
? What is going on?