HTML Dog
Skip to navigation

CSS Value: unset

Declaration erase keyword. If the property is inherited, unset will act as inherit. If the property is not inherited, unset will act as initial.

Example


.clock {
    color: red;
    width: 300px;
}
.clock * {
    color: unset;
    width: unset;
}
/* boxes inside .clock inherit the red color (color is inherited) but width becomes auto (width is not inherited) */

Browser support

Can I Use css-unset-value? Data on support for the css-unset-value feature across the major browsers from caniuse.com.