terribleMia’s avatarterribleMia’s Twitter Archive—№ 12,365

  1. This comment on css Cascade Layers Guide is an excellent explainer of old vs new !important. (Thanks Noam!) css-tricks.com/css-cascade-layers/#comment-1794674
    1. …in reply to @TerribleMia
      A rough summary: - old: !important used (offensively) as a way to override previously-written selectors. But now we can do that using layers instead. - new: !important used (defensively) to prevent future overrides of an essential style.