The all property sets every CSS property on an element to one keyword. Use it to wipe an element's own styles, or to make it take its styles from the parent.
Not deprecated. initial, inherit, and unset are widely supported. revert-layer needs a newer browser. revert-rule is newer still and is not in the everyday set.
The initial value of display is inline. A p, div, or heading can jump onto the same line as the text around it.
order
A property after all is kept
all: initial; color: green; ends green. The same color written before all is wiped.
unset
unset is not a full wipe
Inherited properties, including color and font-size, still come from the parent. Only the non-inherited ones go back to their initial value.
form
Form controls lose their browser look
all: initial on a button or input removes the user-agent border, background, and font. Put the styles you still need after all.
Compatibility
Browser Support
all is a browser style property. Node.js, Deno, and Bun do not apply it. Internet Explorer does not support it.
✓ Baseline · Widely available since 2020
all
Chrome 37+, Firefox 27+, Safari 9.1+, Edge 79+. No Internet Explorer. revert and revert-layer need newer versions.
95%initial, inherit, and unset
Google Chrome37+ · unset from 41
Full support
Mozilla Firefox27+
Full support
Apple Safari9.1+
Full support
Microsoft Edge79+ · Chromium
Full support
Opera24+
Full support
Samsung Internet3+
Full support
Internet ExplorerNo support
Not supported
allWidely supported
Bottom line:all: revert needs Chrome 84, Firefox 67, or Safari 9.1. all: revert-layer needs Chrome 99, Firefox 97, or Safari 15.4. Legacy Edge and Internet Explorer ignore the property.
Remember
Key Takeaways
Role: one keyword for every property on the element.
initial: spec defaults. Text turns black, and the element becomes inline.
unset: inherited properties copy the parent. Everything else is reset.
Left alone:direction, unicode-bidi, and custom properties.
One line:all replaces the element's styles with one keyword. Write anything you want to keep after it.
Frequently Asked Questions
It sets every CSS property on an element to one keyword, such as initial or inherit. It is a shorthand for all properties except unicode-bidi, direction, and custom properties.
initial sets every property to its spec default, so color becomes black and a paragraph becomes inline. unset inherits properties that normally inherit, such as color and font-size, and resets the rest.
No. Custom properties, direction, and unicode-bidi stay as they are. A later declaration can also put one property back after all.
The initial value of display is inline. all: initial applies that, so a p or div no longer sits on its own line.
Chrome 37+, Firefox 27+, Safari 9.1+, and Edge 79+ support all. Internet Explorer does not. revert and revert-layer need newer versions. It is a browser style property, not a Node.js feature.