I am currently facing a dilemma with two CSS classes in my codebase. Despite having a stronger specificity, the second class is not being chosen over the first one. Can anyone shed some light on this issue?
The CSS class that is currently being applied is -
td, th, table { border-collapse: collapse; border: 1px solid #999; }
Whereas, the CSS that I actually intend to use is -
table.cancellation { border: none; }
I assumed that since the second class has a class selector, it would have higher specificity. Why does this assumption seem to be incorrect in practice?