The unset CSS keyword can act as either initial or inherit depending on what the property's default behaviour is. If the property is an inherited property, it will be treated as inherit, taking the computed value of its parent element. If not, it will be treated as initial, and the property's initial value becomes its specified value.

<p>
    As both the <code>initial</code> and <code>inherit</code> keywords can be used on any CSS property, the <code>unset</code> keyword can be applied to any CSS property, including the CSS shorthand <code>all</code>.
</p>

<p>
    This keyword acts as a reset, by erasing all declared values on the element applied earlier up the cascade, restoring them to their original behaviour and inheritance, as if no styles were applied. This applies to user-agent styles as well. For example, applying <code>all: unset</code> to the <code>body</code> element will remove the default 8px margin set by almost all user-agent stylesheets.
</p>

Examples

<p>
    Some commonly used CSS properties that are inherited properties include <code>font-family</code> and <code>color</code>. The <code>background-color</code> property, on the other hand, is not inherited. Say we have the following HTML, with some simple styles applied to the elements.
</p>

<pre>&lt;body&gt;

<div>Hello, world!</div> <div class="unset”>Hello, monkey!</div> <div>Hello, watermelon!</div> </body>

<pre>body {

background-color: #F5F5F5; color: #555; font-family: ‘Helvetica Neue’, Helvetica, Arial, sans-serif; }

div { background-color: #C0C0C0; color: #006400; font-family: Georgia, Times, Times New Roman, serif; }

<p>
    If we add the property <code>all: unset</code> to the element with the class "unset", then check its computed CSS property values (from the browser's Developer Tools), we will see that the inherited properties of <code>color</code> and <code>font-family</code> inherit from the <code>body</code> element, while the <code>background-color</code> gets set back to the initial value of <code>transparent</code>.
</p>

Live Demo

https://jsfiddle.net/huijing/8czht67o/

Browser Support

[caniuse feature="css-unset-value"]
<h3>Notes</h3>
<p>
    The <code>unset</code> value is supported in Microsoft Edge.
</p>