CSS·Advanced·Coding·1 min read
Do inline styles always win?
Short interview answer
Inline normal author styles outrank ordinary author rules by specificity-like precedence, but author-important rules can beat normal inline styles, and transitions have special cascade priority. Saying 'always' hides the actual cascade.
Example
<div style="color: blue">…</div>/* beaten by: */ div { color: red !important; }Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.