diff options
Diffstat (limited to 'files/ko/web/css/isolation/index.html')
-rw-r--r-- | files/ko/web/css/isolation/index.html | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/files/ko/web/css/isolation/index.html b/files/ko/web/css/isolation/index.html new file mode 100644 index 0000000000..ffeb6140f9 --- /dev/null +++ b/files/ko/web/css/isolation/index.html @@ -0,0 +1,114 @@ +--- +title: isolation +slug: Web/CSS/isolation +tags: + - CSS + - CSS Property + - Reference +translation_of: Web/CSS/isolation +--- +<div>{{CSSRef}}</div> + +<p><strong><code>isolation</code></strong> <a href="/ko/docs/Web/CSS">CSS</a> 속성은 요소가 새로운 {{glossary("stacking context", "쌓임 맥락")}}을 생성해야 하는지 지정합니다.</p> + +<div>{{EmbedInteractiveExample("pages/css/isolation.html")}}</div> + + + +<p>{{cssxref("mix-blend-mode")}}와 함께 사용했을 때 특히 유용합니다.</p> + +<h2 id="구문">구문</h2> + +<pre class="brush:css no-line-numbers">/* 키워드 값 */ +isolation: auto; +isolation: isolate; + +/* 전역 값 */ +isolation: inherit; +isolation: initial; +isolation: unset; +</pre> + +<p><code>isolation</code> 속성은 다음 키워드 값 중 하나를 사용해 지정합니다.</p> + +<h3 id="값">값</h3> + +<dl> + <dt><code>auto</code></dt> + <dd>요소에 적용한 속성 중 새로운 쌓임 맥락을 요구하는 속성이 있을 때만 쌓임 맥락을 생성합니다.</dd> + <dt><code>isolate</code></dt> + <dd>항상 새로운 쌓임 맥락을 생성합니다.</dd> +</dl> + +<h3 id="형식_구문">형식 구문</h3> + +<pre class="syntaxbox">{{csssyntax}}</pre> + +<h2 id="예제">예제</h2> + +<pre class="brush: html"><div id="b" class="a"> + <div id="d"> + <div class="a c">auto</div> + </div> + <div id="e"> + <div class="a c">isolate</div> + </div> +</div> +</pre> + +<pre class="brush: css">.a { + background-color: rgb(0,255,0); +} +#b { + width: 200px; + height: 210px; +} +.c { + width: 100px; + height: 100px; + border: 1px solid black; + padding: 2px; + mix-blend-mode: difference; +} +#d { + isolation: auto; +} +#e { + isolation: isolate; +}</pre> + +<p>{{ EmbedLiveSample('예제', 230, 230) }}</p> + +<h2 id="명세">명세</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{ SpecName('Compositing', '#isolation', 'Isolation') }}</td> + <td>{{ Spec2('Compositing') }}</td> + <td>Initial definition</td> + </tr> + </tbody> +</table> + +<p>{{cssinfo}}</p> + +<h2 id="브라우저_호환성">브라우저 호환성</h2> + + + +<p>{{Compat("css.properties.isolation")}}</p> + +<h2 id="같이_보기">같이 보기</h2> + +<ul> + <li>{{cssxref("<blend-mode>")}}</li> + <li>{{cssxref("mix-blend-mode")}}, {{cssxref("background-blend-mode")}}</li> +</ul> |