property

all — CSS reference

Resets the other properties through one CSS-wide keyword, except direction, unicode-bidi and custom properties. It can remove useful display, font, focus and spacing defaults; do not indiscriminately reset accessible controls. The exclusions remain even for all: initial.

Formal Syntax & Structure

css syntaxcss
all: initial | inherit | unset | revert | revert-layer;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#a {direction:rtl;unicode-bidi:isolate;--accent:#006050;color:#802020;display:block;all:initial} #a {background-color:var(--accent)}</style><body><p id="a" class="note">Field note</p><p id="b">Control</p></body></html>
CSS Reference