aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css/isolation/index.md
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-11-06 02:52:27 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2021-11-15 01:41:04 +0900
commitf0c088798e51af482a21bbd9ae79097a10274ddc (patch)
tree77a0841141e32c1eae7334e0eb4199caf583da5a /files/ja/web/css/isolation/index.md
parent1d1710ca01bfc45afd032a4e06d19f361635fc8e (diff)
downloadtranslated-content-f0c088798e51af482a21bbd9ae79097a10274ddc.tar.gz
translated-content-f0c088798e51af482a21bbd9ae79097a10274ddc.tar.bz2
translated-content-f0c088798e51af482a21bbd9ae79097a10274ddc.zip
Compositing_and_Blending の文書を変換準備
Diffstat (limited to 'files/ja/web/css/isolation/index.md')
-rw-r--r--files/ja/web/css/isolation/index.md112
1 files changed, 112 insertions, 0 deletions
diff --git a/files/ja/web/css/isolation/index.md b/files/ja/web/css/isolation/index.md
new file mode 100644
index 0000000000..5074d09743
--- /dev/null
+++ b/files/ja/web/css/isolation/index.md
@@ -0,0 +1,112 @@
+---
+title: isolation
+slug: Web/CSS/isolation
+tags:
+ - CSS
+ - CSS プロパティ
+ - 合成と混合
+translation_of: Web/CSS/isolation
+---
+<div>{{CSSRef}}</div>
+
+<p><a href="/ja/docs/Web/CSS">CSS</a> の <strong><code>isolation</code></strong> プロパティは、要素が新しい{{glossary("stacking context", "重ね合わせコンテキスト")}}を生成する必要があるかどうかを定義します。</p>
+
+<div>{{EmbedInteractiveExample("pages/css/isolation.html")}}</div>
+
+<p class="hidden">このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> をクローンしてプルリクエストを送信してください。</p>
+
+<p>このプロパティは {{cssxref("mix-blend-mode")}} との組み合わせで使用すると特に有用です。</p>
+
+<h2 id="Syntax" name="Syntax">構文</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="Values" name="Values">値</h3>
+
+<dl>
+ <dt><code>auto</code></dt>
+ <dd>何れかのプロパティが必要な要素に適用された場合にのみ、新しい重ね合わせコンテキストが作成されます。</dd>
+ <dt><code>isolate</code></dt>
+ <dd>新しい重ね合わせコンテキストが必ず作成されます。</dd>
+</dl>
+
+<h3 id="Formal_syntax" name="Formal_syntax">形式文法</h3>
+
+{{csssyntax}}
+
+<h2 id="Examples" name="Examples">例</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('Examples', 230, 230) }}</p>
+
+<h2 id="Specifications" name="Specifications">仕様書</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様書</th>
+ <th scope="col">状態</th>
+ <th scope="col">備考</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="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2>
+
+<p>{{Compat("css.properties.isolation")}}</p>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li>{{cssxref("&lt;blend-mode&gt;")}}</li>
+ <li>{{cssxref("mix-blend-mode")}}, {{cssxref("background-blend-mode")}}</li>
+</ul>