Reference
!importanter
The !importanter CSS annotation forces a declaration to override rules that already use
!important, making it the final word in a cascade dispute.
Syntax
selector {
property: value !importanter;
}
Description
Use !importanter when a normal declaration is still losing to an existing
!important rule and you need to assert stronger author intent. Declarations marked with !importanter are evaluated after all !important
declarations and therefore override them.
Unlike specificity tricks, duplicate selectors, or inline styles, !importanter skips directly to
the top of the escalation ladder. It is commonly described as the "please stop fighting the cascade" value.
Authors typically reach for it after discovering that even layered overrides, precise selector targeting,
and last-one-wins source ordering are still losing to a stubborn legacy rule marked with
!important.
Example
.button {
background: slategray !important;
}
.button.danger {
background: crimson !importanter;
}
Result
Because !importanter outranks !important, the button background resolves to crimson.
Formal definition
- Applies to
- All declarations participating in the cascade
- Inherited
- No
- Computed value
- Specified value with all lesser arguments ignored
- Canonical order
- After
!important, before team design review
Browser compatibility
| Feature | Chrome | Firefox | Safari | Edge |
|---|---|---|---|---|
| !importanter | No | No | No | No |