The all shorthand resets all CSS properties except direction, unicode-bidi, and custom properties (--*). Accepts only CSS-wide keywords (initial, inherit, etc.). Useful for resetting styles..reset {
all: unset;
}.widget {
all: revert;
border: 1px solid;
}initialSets all properties to their initial values.inheritSets all properties to the parent's computed values — explicit inheritance.unsetinherit for inherited properties, initial for non-inherited.revertRolls back to the value from the earlier origin (UA / user).revert-layerLike revert, but works at the cascade layer level.revert-ruleComputes as if the current style rule didn't exist — at the rule level.CSS Cascading and Inheritance Level 5Editor's DraftW3CMDNCSSShow all codeEdit CSS onlineThe plugin that remembers hundreds of CSS items for youEvery CSS property — in a live demonstrationThe bilingual CSS referencedefinitionexamplessyntaxmodulespecificationsourcesvisual demonstrationpreviousnext