DEV Community

Discussion on: Common Frontend Interview Questions I've Been Asked

Collapse
 
fen1499 profile image
Fen

I believe the composition of both goods and bads would form an even better answer, but what would be a correct answer about it's positive usage? I only used it a few times as a fast fix for some CSS mess that someone previous maintainer made.

Thread Thread
 
gibbitz profile image
Paul Fox

You hit the only good point. Speed. Even in it's implementation !important feels like a hack. It is the only property specification that affects the cascade and at that it short circuits it. If you have a production issue you need to patch in code you don't maintain, this would be a temporary fix.