I’m a bit confused as to why the snippet below doesn’t have red text.
I always thought !important
would take precedence over any other selector, no matter its specificity. Isn’t that the case?
.one {
color: blue;
}
.red {
color: red !important;
}
<div class="red">
<div class="one">One</div>
<div class="two">Two</div>
</div>
Just to be clear, my expectation here is to see only red text, no blue.