unset CSS 키워드는 initialinherit 키워드의 조합(combination)입니다. 이 다른 CSS 키워드 둘처럼, CSS 단축(shorthand) 속성 all 포함 모든 CSS 속성에 적용될 수 있습니다. 이 키워드는 속성을 부모로부터 상속받은 경우 그 상속값으로 아니면 초기값으로 재설정(reset)합니다. 다시 말해서, 첫 번째는 inherit 키워드처럼 두 번째는 initial 키워드처럼 행동합니다.


p {
  color: red;

#sidebar p {
  color: unset;
<p>This text is red</p>
<div id="sidebar">
  <p>This text has the default color</p>



명세 상태 설명
CSS Cascading and Inheritance Level 4
The definition of 'unset' in that specification.
Candidate Recommendation Level 3에서 변화 없음
CSS Cascading and Inheritance Level 3
The definition of 'unset' in that specification.
Candidate Recommendation 초기 정의

브라우저 호환성

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
unsetChrome Full support 41Edge Full support 13Firefox Full support 27IE No support NoOpera Full support YesSafari Full support 9.1WebView Android Full support 41Chrome Android Full support 41Firefox Android Full support 27Opera Android Full support YesSafari iOS Full support 9.3Samsung Internet Android Full support Yes


Full support  
Full support
No support  
No support

같이 보기

  • Use initial to set a property to its initial value.
  • Use revert to reset a property to the value established by the user-agent stylesheet (or by user styles, if any exist).
  • Use inherit to make an element's property the same as its parent.
  • The all property lets you reset all properties to their initial, inherited, reverted, or unset state at once.