aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/css/isolation/index.html
blob: 2abb55faa149b3b4567be70a8e1b3ac3c5c292e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
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>

{{csssyntax}}

<h2 id="예제">예제</h2>

<pre class="brush: html">&lt;div id="b" class="a"&gt;
  &lt;div id="d"&gt;
    &lt;div class="a c"&gt;auto&lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="e"&gt;
    &lt;div class="a c"&gt;isolate&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
</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("&lt;blend-mode&gt;")}}</li>
 <li>{{cssxref("mix-blend-mode")}}, {{cssxref("background-blend-mode")}}</li>
</ul>