From f0c088798e51af482a21bbd9ae79097a10274ddc Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sat, 6 Nov 2021 02:52:27 +0900 Subject: Compositing_and_Blending の文書を変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/background-blend-mode/index.html | 112 ---- files/ja/web/css/background-blend-mode/index.md | 112 ++++ files/ja/web/css/blend-mode/index.html | 459 --------------- files/ja/web/css/blend-mode/index.md | 459 +++++++++++++++ .../ja/web/css/compositing_and_blending/index.html | 72 --- files/ja/web/css/compositing_and_blending/index.md | 72 +++ files/ja/web/css/isolation/index.html | 112 ---- files/ja/web/css/isolation/index.md | 112 ++++ files/ja/web/css/mix-blend-mode/index.html | 653 --------------------- files/ja/web/css/mix-blend-mode/index.md | 653 +++++++++++++++++++++ 10 files changed, 1408 insertions(+), 1408 deletions(-) delete mode 100644 files/ja/web/css/background-blend-mode/index.html create mode 100644 files/ja/web/css/background-blend-mode/index.md delete mode 100644 files/ja/web/css/blend-mode/index.html create mode 100644 files/ja/web/css/blend-mode/index.md delete mode 100644 files/ja/web/css/compositing_and_blending/index.html create mode 100644 files/ja/web/css/compositing_and_blending/index.md delete mode 100644 files/ja/web/css/isolation/index.html create mode 100644 files/ja/web/css/isolation/index.md delete mode 100644 files/ja/web/css/mix-blend-mode/index.html create mode 100644 files/ja/web/css/mix-blend-mode/index.md (limited to 'files') diff --git a/files/ja/web/css/background-blend-mode/index.html b/files/ja/web/css/background-blend-mode/index.html deleted file mode 100644 index 671ade8f21..0000000000 --- a/files/ja/web/css/background-blend-mode/index.html +++ /dev/null @@ -1,112 +0,0 @@ ---- -title: background-blend-mode -slug: Web/CSS/background-blend-mode -tags: - - CSS - - CSS プロパティ - - Reference - - 合成と混合 -translation_of: Web/CSS/background-blend-mode ---- -
{{CSSRef}}
- -

CSSbackground-blend-mode プロパティは、要素の背景画像を互いに、または要素の背景色と、どのように混合するかを設定します。

- -
{{EmbedInteractiveExample("pages/css/background-blend-mode.html")}}
- - - -

混合モードは {{cssxref("background-image")}} プロパティと同じ順番で定義してください。混合モードのリストと背景画像のリストの長さが異なる場合は、長さが合うまで繰り返しや短縮が行われます。

- -

構文

- -
/* 1 値 */
-background-blend-mode: normal;
-
-/* 2 値、背景ごとにひとつずつ */
-background-blend-mode: darken, luminosity;
-
-/* グローバル値 */
-background-blend-mode: initial;
-background-blend-mode: inherit;
-background-blend-mode: unset;
-
- -

- -
-
{{cssxref("<blend-mode>")}}
-
適用する混合モードです。複数の値をコンマ区切りで置くことができます。
-
- -

形式文法

- -{{csssyntax}} - -

- - - - - - - -

{{ EmbedLiveSample('Examples', "330", "330") }}

- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{ SpecName('Compositing', '#background-blend-mode', 'background-blend-mode') }}{{ Spec2('Compositing') }}初回定義
- -

{{cssinfo}}

- -

ブラウザーの対応

- -

{{Compat("css.properties.background-blend-mode")}}

- -

関連情報

- - diff --git a/files/ja/web/css/background-blend-mode/index.md b/files/ja/web/css/background-blend-mode/index.md new file mode 100644 index 0000000000..671ade8f21 --- /dev/null +++ b/files/ja/web/css/background-blend-mode/index.md @@ -0,0 +1,112 @@ +--- +title: background-blend-mode +slug: Web/CSS/background-blend-mode +tags: + - CSS + - CSS プロパティ + - Reference + - 合成と混合 +translation_of: Web/CSS/background-blend-mode +--- +
{{CSSRef}}
+ +

CSSbackground-blend-mode プロパティは、要素の背景画像を互いに、または要素の背景色と、どのように混合するかを設定します。

+ +
{{EmbedInteractiveExample("pages/css/background-blend-mode.html")}}
+ + + +

混合モードは {{cssxref("background-image")}} プロパティと同じ順番で定義してください。混合モードのリストと背景画像のリストの長さが異なる場合は、長さが合うまで繰り返しや短縮が行われます。

+ +

構文

+ +
/* 1 値 */
+background-blend-mode: normal;
+
+/* 2 値、背景ごとにひとつずつ */
+background-blend-mode: darken, luminosity;
+
+/* グローバル値 */
+background-blend-mode: initial;
+background-blend-mode: inherit;
+background-blend-mode: unset;
+
+ +

+ +
+
{{cssxref("<blend-mode>")}}
+
適用する混合モードです。複数の値をコンマ区切りで置くことができます。
+
+ +

形式文法

+ +{{csssyntax}} + +

+ + + + + + + +

{{ EmbedLiveSample('Examples', "330", "330") }}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{ SpecName('Compositing', '#background-blend-mode', 'background-blend-mode') }}{{ Spec2('Compositing') }}初回定義
+ +

{{cssinfo}}

+ +

ブラウザーの対応

+ +

{{Compat("css.properties.background-blend-mode")}}

+ +

関連情報

+ + diff --git a/files/ja/web/css/blend-mode/index.html b/files/ja/web/css/blend-mode/index.html deleted file mode 100644 index 1425d46207..0000000000 --- a/files/ja/web/css/blend-mode/index.html +++ /dev/null @@ -1,459 +0,0 @@ ---- -title: -slug: Web/CSS/blend-mode -tags: - - Blend modes - - CSS - - CSS Data Type - - Compositing - - Compositing and Blending - - Data Type - - Reference - - color - - ブレンドモード - - 合成 -browser-compat: css.types.blend-mode -translation_of: Web/CSS/blend-mode ---- -
{{CSSRef}}
- -

<blend-mode>CSSデータ型で、要素が重なったときにどのように色が現れるかを記述します。 {{cssxref("background-blend-mode")}} または {{cssxref("mix-blend-mode")}} プロパティで使用されます。

- -

構文

- -

<blend-mode> データ型は、以下に挙げたキーワードのうちの一つで定義します。

- -

- -
-
normal
-
-

下の色が何であるかに関わらず、上の色が最終的な色になります。
- この効果は 2 枚の不透明の紙が重なっているようなものです。

- -
- -
- -

{{ EmbedLiveSample('normal_example', "300", "300") }}

-
-
multiply
-
-

上の色と下の色を掛け合わせた結果が最終的な色になります。
- 黒いレイヤーは最終的に黒いレイヤーに近づけ、白いレイヤーは変化をもたらしません。
- この効果は2枚の透明なフィルムに印刷された画像を重ね合わせたようなものです。

- -
- -
- -

{{ EmbedLiveSample('multiply_example', "300", "300") }}

-
-
screen
-
-

色を反転して乗算を行い、さらに色を反転した結果が最終的な色になります。
- 黒いレイヤーは変化をもたらしません。白いレイヤーは、最終的に白いのレイヤーへ近づけます。
- この効果は2枚の画像がスクリーンに投影された状況に似ています。

- -
- -
- -

{{ EmbedLiveSample('screen_example', "300", "300") }}

-
-
overlay
-
下の色が暗ければ multiply、下の色が明るければ screen の結果が最終的な色になります。。
- このブレンドモードは hard-light と同等ですが、レイヤーは逆です。 -
- -
- -

{{ EmbedLiveSample('overlay_example', "300", "300") }}

-
-
darken
-
-

色成分ごとに最も暗い値が最終的な値になります。

- -
- -
- -

{{ EmbedLiveSample('darken_example', "300", "300") }}

-
-
lighten
-
-

色成分ごとに最も明るい値が最終的な値になります。

- -
- -
- -

{{ EmbedLiveSample('lighten_example', "300", "300") }}

-
-
color-dodge
-
-

下の色を、反転した上の色で除算した結果が、最終的な色になります。
- 黒い前景は変化をもたらしません。背景色を反転した色を持つ前景は、完全に明るい色に導きます。
- このブレンドモードは screen に似ていますが、完全に明るい色に近づけるためには背景色を反転した色と同程度に明るい前景が必要です。

- -
- -
- -

{{ EmbedLiveSample('color-dodge_example', "300", "300") }}

-
-
color-burn
-
-

反転した下の色を上の色で除算して、さらに反転した結果が最終的な色になります。
- 白い背景は変化をもたらしません。背景色を反転した色を持つ前景は、最終的に黒い画像へ近づけます。
- このブレンドモードは multiply に似ていますが、最終的に画像を暗くするためには背景色を反転した色と同程度に暗い前景が必要です。

- -
- -
- -

{{ EmbedLiveSample('color-burn_example', "300", "300") }}

-
-
hard-light
-
-

上の色が暗い色であれば multiply 、明るい色であれば screen の結果が最終的な色になります。
- このブレンドモードは overlay と同じですが、レイヤーが入れ替わっています。
- この効果は、背景に強烈なスポットライトを当てた状況に似ています。

- -
- -
- -

{{ EmbedLiveSample('hard-light_example', "300", "300") }}

-
-
soft-light
-
-

最終的な色は hard-light に似ていますが、よりソフトになります。
- このブレンドモードは hard-light に似ています。
- この効果は、背景に拡散光のスポットライトを当てた状況に似ています。

- -
- -
- -

{{ EmbedLiveSample('soft-light_example', "300", "300") }}

-
-
difference
-
-

2 つの色のうち明るい色から、暗い色を減算した結果が最終的な色になります。
- 黒いレイヤーは変化をもたらしません。白いレイヤーは、もうひとつのレイヤーの色を反転します。

- -
- -
- -

{{ EmbedLiveSample('difference_example', "300", "300") }}

-
-
exclusion
-
-

最終的な色は difference に似ていますが、コントラストが低くなります。
- difference と同様に、黒いレイヤーは変化をもたらしません。白いレイヤーは、もうひとつのレイヤーの色を反転します。

- -
- -
- -

{{ EmbedLiveSample('exclusion_example', "300", "300") }}

-
-
hue
-
-

最終的な色は上の色の色調を持ちますが、彩度および明度は下の色の値を使用します。

- -
- -
- -

{{ EmbedLiveSample('hue_example', "300", "300") }}

-
-
saturation
-
-

最終的な色は上の色の彩度を持ちますが、色調および明度は下の色の値を使用します。
- 彩度を持たない純粋なグレーの背景は、効果がありません。

- -
- -
- -

{{ EmbedLiveSample('saturation_example', "300", "300") }}

-
-
color
-
-

最終的な色は上の色の色調および彩度を持ちますが、明度は下の色の値を使用します。
- この効果はグレーレベルを保持しており、前景に色をつけるために使用できます。

- -
- -
- -

{{ EmbedLiveSample('color_example', "300", "300") }}

-
-
luminosity
-
-

最終的な色は上の色の明度を持ちますが、色調および 彩度は下の色の値を使用します。
- このブレンドモードは color と同じですが、レイヤーが入れ替わっています。

- -
- -
- -

{{ EmbedLiveSample('luminosity_example', "300", "300") }}

-
-
- -

解説

- -

ブレンドモードは、適用されるレイヤー間のそれぞれのピクセルにおいて前景色と背景色を取り、計算を行い、新しい色の値を返します。

- -

ブレンドモード同士の変化は補完されません。すべての変更が直接反映されます。

- -

- -

ブレンドモードの比較

- -

次の例の <div> には、 Firefox のロゴと線形グラデーションの 2 つの背景画像を設定してあります。その下に <select> メニューがあって background-blend-mode を変更することができ、それが <div> に適用されますので、様々なブレンドモードの効果を比較することができます。

- -

HTML

- -
<div></div>
-<p>ブレンドモードを選択してください。</p>
-<select>
-  <option selected>normal</option>
-  <option>multiply</option>
-  <option>screen</option>
-  <option>overlay</option>
-  <option>darken</option>
-  <option>lighten</option>
-  <option>color-dodge</option>
-  <option>color-burn</option>
-  <option>hard-light</option>
-  <option>soft-light</option>
-  <option>difference</option>
-  <option>exclusion</option>
-  <option>hue</option>
-  <option>saturation</option>
-  <option>color</option>
-  <option>luminosity</option>
-</select>
- -

CSS

- -
div {
-  width: 300px;
-  height: 300px;
-  background: url(https://media.prod.mdn.mozit.cloud/attachments/2020/07/29/17350/3b4892b7e820122ac6dd7678891d4507/firefox.png) no-repeat center,
-  linear-gradient(to bottom, blue, orange);
-}
- -

JavaScript

- -
const selectElem = document.querySelector('select');
-const divElem = document.querySelector('div');
-
-selectElem.addEventListener('change', () => {
-  divElem.style.backgroundBlendMode = selectElem.value;
-});
- -

結果

- -

{{EmbedLiveSample('Blend_mode_comparison', '100%', 370)}}

- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{ SpecName('Compositing', '#ltblendmodegt', '<blend-mode>') }}{{ Spec2('Compositing') }}初回定義
- -

ブラウザーの互換性

- -

{{Compat}}

- -

関連情報

- - - -

様々なブレンドモードの他のウェブサイトにおける解説

- - diff --git a/files/ja/web/css/blend-mode/index.md b/files/ja/web/css/blend-mode/index.md new file mode 100644 index 0000000000..1425d46207 --- /dev/null +++ b/files/ja/web/css/blend-mode/index.md @@ -0,0 +1,459 @@ +--- +title: +slug: Web/CSS/blend-mode +tags: + - Blend modes + - CSS + - CSS Data Type + - Compositing + - Compositing and Blending + - Data Type + - Reference + - color + - ブレンドモード + - 合成 +browser-compat: css.types.blend-mode +translation_of: Web/CSS/blend-mode +--- +
{{CSSRef}}
+ +

<blend-mode>CSSデータ型で、要素が重なったときにどのように色が現れるかを記述します。 {{cssxref("background-blend-mode")}} または {{cssxref("mix-blend-mode")}} プロパティで使用されます。

+ +

構文

+ +

<blend-mode> データ型は、以下に挙げたキーワードのうちの一つで定義します。

+ +

+ +
+
normal
+
+

下の色が何であるかに関わらず、上の色が最終的な色になります。
+ この効果は 2 枚の不透明の紙が重なっているようなものです。

+ +
+ +
+ +

{{ EmbedLiveSample('normal_example', "300", "300") }}

+
+
multiply
+
+

上の色と下の色を掛け合わせた結果が最終的な色になります。
+ 黒いレイヤーは最終的に黒いレイヤーに近づけ、白いレイヤーは変化をもたらしません。
+ この効果は2枚の透明なフィルムに印刷された画像を重ね合わせたようなものです。

+ +
+ +
+ +

{{ EmbedLiveSample('multiply_example', "300", "300") }}

+
+
screen
+
+

色を反転して乗算を行い、さらに色を反転した結果が最終的な色になります。
+ 黒いレイヤーは変化をもたらしません。白いレイヤーは、最終的に白いのレイヤーへ近づけます。
+ この効果は2枚の画像がスクリーンに投影された状況に似ています。

+ +
+ +
+ +

{{ EmbedLiveSample('screen_example', "300", "300") }}

+
+
overlay
+
下の色が暗ければ multiply、下の色が明るければ screen の結果が最終的な色になります。。
+ このブレンドモードは hard-light と同等ですが、レイヤーは逆です。 +
+ +
+ +

{{ EmbedLiveSample('overlay_example', "300", "300") }}

+
+
darken
+
+

色成分ごとに最も暗い値が最終的な値になります。

+ +
+ +
+ +

{{ EmbedLiveSample('darken_example', "300", "300") }}

+
+
lighten
+
+

色成分ごとに最も明るい値が最終的な値になります。

+ +
+ +
+ +

{{ EmbedLiveSample('lighten_example', "300", "300") }}

+
+
color-dodge
+
+

下の色を、反転した上の色で除算した結果が、最終的な色になります。
+ 黒い前景は変化をもたらしません。背景色を反転した色を持つ前景は、完全に明るい色に導きます。
+ このブレンドモードは screen に似ていますが、完全に明るい色に近づけるためには背景色を反転した色と同程度に明るい前景が必要です。

+ +
+ +
+ +

{{ EmbedLiveSample('color-dodge_example', "300", "300") }}

+
+
color-burn
+
+

反転した下の色を上の色で除算して、さらに反転した結果が最終的な色になります。
+ 白い背景は変化をもたらしません。背景色を反転した色を持つ前景は、最終的に黒い画像へ近づけます。
+ このブレンドモードは multiply に似ていますが、最終的に画像を暗くするためには背景色を反転した色と同程度に暗い前景が必要です。

+ +
+ +
+ +

{{ EmbedLiveSample('color-burn_example', "300", "300") }}

+
+
hard-light
+
+

上の色が暗い色であれば multiply 、明るい色であれば screen の結果が最終的な色になります。
+ このブレンドモードは overlay と同じですが、レイヤーが入れ替わっています。
+ この効果は、背景に強烈なスポットライトを当てた状況に似ています。

+ +
+ +
+ +

{{ EmbedLiveSample('hard-light_example', "300", "300") }}

+
+
soft-light
+
+

最終的な色は hard-light に似ていますが、よりソフトになります。
+ このブレンドモードは hard-light に似ています。
+ この効果は、背景に拡散光のスポットライトを当てた状況に似ています。

+ +
+ +
+ +

{{ EmbedLiveSample('soft-light_example', "300", "300") }}

+
+
difference
+
+

2 つの色のうち明るい色から、暗い色を減算した結果が最終的な色になります。
+ 黒いレイヤーは変化をもたらしません。白いレイヤーは、もうひとつのレイヤーの色を反転します。

+ +
+ +
+ +

{{ EmbedLiveSample('difference_example', "300", "300") }}

+
+
exclusion
+
+

最終的な色は difference に似ていますが、コントラストが低くなります。
+ difference と同様に、黒いレイヤーは変化をもたらしません。白いレイヤーは、もうひとつのレイヤーの色を反転します。

+ +
+ +
+ +

{{ EmbedLiveSample('exclusion_example', "300", "300") }}

+
+
hue
+
+

最終的な色は上の色の色調を持ちますが、彩度および明度は下の色の値を使用します。

+ +
+ +
+ +

{{ EmbedLiveSample('hue_example', "300", "300") }}

+
+
saturation
+
+

最終的な色は上の色の彩度を持ちますが、色調および明度は下の色の値を使用します。
+ 彩度を持たない純粋なグレーの背景は、効果がありません。

+ +
+ +
+ +

{{ EmbedLiveSample('saturation_example', "300", "300") }}

+
+
color
+
+

最終的な色は上の色の色調および彩度を持ちますが、明度は下の色の値を使用します。
+ この効果はグレーレベルを保持しており、前景に色をつけるために使用できます。

+ +
+ +
+ +

{{ EmbedLiveSample('color_example', "300", "300") }}

+
+
luminosity
+
+

最終的な色は上の色の明度を持ちますが、色調および 彩度は下の色の値を使用します。
+ このブレンドモードは color と同じですが、レイヤーが入れ替わっています。

+ +
+ +
+ +

{{ EmbedLiveSample('luminosity_example', "300", "300") }}

+
+
+ +

解説

+ +

ブレンドモードは、適用されるレイヤー間のそれぞれのピクセルにおいて前景色と背景色を取り、計算を行い、新しい色の値を返します。

+ +

ブレンドモード同士の変化は補完されません。すべての変更が直接反映されます。

+ +

+ +

ブレンドモードの比較

+ +

次の例の <div> には、 Firefox のロゴと線形グラデーションの 2 つの背景画像を設定してあります。その下に <select> メニューがあって background-blend-mode を変更することができ、それが <div> に適用されますので、様々なブレンドモードの効果を比較することができます。

+ +

HTML

+ +
<div></div>
+<p>ブレンドモードを選択してください。</p>
+<select>
+  <option selected>normal</option>
+  <option>multiply</option>
+  <option>screen</option>
+  <option>overlay</option>
+  <option>darken</option>
+  <option>lighten</option>
+  <option>color-dodge</option>
+  <option>color-burn</option>
+  <option>hard-light</option>
+  <option>soft-light</option>
+  <option>difference</option>
+  <option>exclusion</option>
+  <option>hue</option>
+  <option>saturation</option>
+  <option>color</option>
+  <option>luminosity</option>
+</select>
+ +

CSS

+ +
div {
+  width: 300px;
+  height: 300px;
+  background: url(https://media.prod.mdn.mozit.cloud/attachments/2020/07/29/17350/3b4892b7e820122ac6dd7678891d4507/firefox.png) no-repeat center,
+  linear-gradient(to bottom, blue, orange);
+}
+ +

JavaScript

+ +
const selectElem = document.querySelector('select');
+const divElem = document.querySelector('div');
+
+selectElem.addEventListener('change', () => {
+  divElem.style.backgroundBlendMode = selectElem.value;
+});
+ +

結果

+ +

{{EmbedLiveSample('Blend_mode_comparison', '100%', 370)}}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{ SpecName('Compositing', '#ltblendmodegt', '<blend-mode>') }}{{ Spec2('Compositing') }}初回定義
+ +

ブラウザーの互換性

+ +

{{Compat}}

+ +

関連情報

+ +
    +
  • このデータ型を使用するプロパティ: {{cssxref("background-blend-mode")}}, {{cssxref("mix-blend-mode")}}
  • +
+ +

様々なブレンドモードの他のウェブサイトにおける解説

+ + diff --git a/files/ja/web/css/compositing_and_blending/index.html b/files/ja/web/css/compositing_and_blending/index.html deleted file mode 100644 index 42cf85122a..0000000000 --- a/files/ja/web/css/compositing_and_blending/index.html +++ /dev/null @@ -1,72 +0,0 @@ ---- -title: 合成と混合 -slug: Web/CSS/Compositing_and_Blending -tags: - - CSS - - リファレンス - - 合成と混合 - - 概要 -translation_of: Web/CSS/Compositing_and_Blending ---- -
{{CSSRef}}
- -

合成と混合 (Compositing and Blending) は CSS モジュールの一つで、様々な要素のシェイプを単一の画像に合成する方法を定義します。

- -

リファレンス

- -

プロパティ

- -
-
    -
  • {{cssxref("background-blend-mode")}}
  • -
  • {{cssxref("isolation")}}
  • -
  • {{cssxref("mix-blend-mode")}}
  • -
-
- -

データ型

- -
-
    -
  • {{cssxref("<blend-mode>")}}
  • -
-
- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName("Compositing")}}{{Spec2("Compositing")}}初回定義
- -

ブラウザーの対応

- -

background-blend-mode プロパティ

- -
-

{{Compat("css.properties.background-blend-mode")}}

-
- -

isolation プロパティ

- -
-

{{Compat("css.properties.isolation")}}

-
- -

mix-blend-mode プロパティ

- -
-

{{Compat("css.properties.mix-blend-mode")}}

-
diff --git a/files/ja/web/css/compositing_and_blending/index.md b/files/ja/web/css/compositing_and_blending/index.md new file mode 100644 index 0000000000..42cf85122a --- /dev/null +++ b/files/ja/web/css/compositing_and_blending/index.md @@ -0,0 +1,72 @@ +--- +title: 合成と混合 +slug: Web/CSS/Compositing_and_Blending +tags: + - CSS + - リファレンス + - 合成と混合 + - 概要 +translation_of: Web/CSS/Compositing_and_Blending +--- +
{{CSSRef}}
+ +

合成と混合 (Compositing and Blending) は CSS モジュールの一つで、様々な要素のシェイプを単一の画像に合成する方法を定義します。

+ +

リファレンス

+ +

プロパティ

+ +
+
    +
  • {{cssxref("background-blend-mode")}}
  • +
  • {{cssxref("isolation")}}
  • +
  • {{cssxref("mix-blend-mode")}}
  • +
+
+ +

データ型

+ +
+
    +
  • {{cssxref("<blend-mode>")}}
  • +
+
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("Compositing")}}{{Spec2("Compositing")}}初回定義
+ +

ブラウザーの対応

+ +

background-blend-mode プロパティ

+ +
+

{{Compat("css.properties.background-blend-mode")}}

+
+ +

isolation プロパティ

+ +
+

{{Compat("css.properties.isolation")}}

+
+ +

mix-blend-mode プロパティ

+ +
+

{{Compat("css.properties.mix-blend-mode")}}

+
diff --git a/files/ja/web/css/isolation/index.html b/files/ja/web/css/isolation/index.html deleted file mode 100644 index 5074d09743..0000000000 --- a/files/ja/web/css/isolation/index.html +++ /dev/null @@ -1,112 +0,0 @@ ---- -title: isolation -slug: Web/CSS/isolation -tags: - - CSS - - CSS プロパティ - - 合成と混合 -translation_of: Web/CSS/isolation ---- -
{{CSSRef}}
- -

CSSisolation プロパティは、要素が新しい{{glossary("stacking context", "重ね合わせコンテキスト")}}を生成する必要があるかどうかを定義します。

- -
{{EmbedInteractiveExample("pages/css/isolation.html")}}
- - - -

このプロパティは {{cssxref("mix-blend-mode")}} との組み合わせで使用すると特に有用です。

- -

構文

- -
/* キーワード値 */
-isolation: auto;
-isolation: isolate;
-
-/* グローバル値 */
-isolation: inherit;
-isolation: initial;
-isolation: unset;
-
- -

isolation プロパティは、以下の一覧にあるキーワード値のうちの一つで指定します。

- -

- -
-
auto
-
何れかのプロパティが必要な要素に適用された場合にのみ、新しい重ね合わせコンテキストが作成されます。
-
isolate
-
新しい重ね合わせコンテキストが必ず作成されます。
-
- -

形式文法

- -{{csssyntax}} - -

- -
<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>
-
- -
.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;
-}
- -

{{ EmbedLiveSample('Examples', 230, 230) }}

- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{ SpecName('Compositing', '#isolation', 'Isolation') }}{{ Spec2('Compositing') }}Initial definition
- -

{{cssinfo}}

- -

ブラウザーの対応

- -

{{Compat("css.properties.isolation")}}

- -

関連情報

- -
    -
  • {{cssxref("<blend-mode>")}}
  • -
  • {{cssxref("mix-blend-mode")}}, {{cssxref("background-blend-mode")}}
  • -
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 +--- +
{{CSSRef}}
+ +

CSSisolation プロパティは、要素が新しい{{glossary("stacking context", "重ね合わせコンテキスト")}}を生成する必要があるかどうかを定義します。

+ +
{{EmbedInteractiveExample("pages/css/isolation.html")}}
+ + + +

このプロパティは {{cssxref("mix-blend-mode")}} との組み合わせで使用すると特に有用です。

+ +

構文

+ +
/* キーワード値 */
+isolation: auto;
+isolation: isolate;
+
+/* グローバル値 */
+isolation: inherit;
+isolation: initial;
+isolation: unset;
+
+ +

isolation プロパティは、以下の一覧にあるキーワード値のうちの一つで指定します。

+ +

+ +
+
auto
+
何れかのプロパティが必要な要素に適用された場合にのみ、新しい重ね合わせコンテキストが作成されます。
+
isolate
+
新しい重ね合わせコンテキストが必ず作成されます。
+
+ +

形式文法

+ +{{csssyntax}} + +

+ +
<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>
+
+ +
.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;
+}
+ +

{{ EmbedLiveSample('Examples', 230, 230) }}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{ SpecName('Compositing', '#isolation', 'Isolation') }}{{ Spec2('Compositing') }}Initial definition
+ +

{{cssinfo}}

+ +

ブラウザーの対応

+ +

{{Compat("css.properties.isolation")}}

+ +

関連情報

+ +
    +
  • {{cssxref("<blend-mode>")}}
  • +
  • {{cssxref("mix-blend-mode")}}, {{cssxref("background-blend-mode")}}
  • +
diff --git a/files/ja/web/css/mix-blend-mode/index.html b/files/ja/web/css/mix-blend-mode/index.html deleted file mode 100644 index cd76be032c..0000000000 --- a/files/ja/web/css/mix-blend-mode/index.html +++ /dev/null @@ -1,653 +0,0 @@ ---- -title: mix-blend-mode -slug: Web/CSS/mix-blend-mode -tags: - - CSS - - CSS プロパティ - - ウェブ - - リファレンス - - 合成と混合 -translation_of: Web/CSS/mix-blend-mode ---- -
{{CSSRef}}
- -

CSSmix-blend-mode プロパティは、要素の内容物と親要素の内容物や要素の背景をどのように混合するかを設定します。

- -
{{EmbedInteractiveExample("pages/css/mix-blend-mode.html")}}
- - - -

構文

- -
/* キーワード値 */
-mix-blend-mode: normal;
-mix-blend-mode: multiply;
-mix-blend-mode: screen;
-mix-blend-mode: overlay;
-mix-blend-mode: darken;
-mix-blend-mode: lighten;
-mix-blend-mode: color-dodge;
-mix-blend-mode: color-burn;
-mix-blend-mode: hard-light;
-mix-blend-mode: soft-light;
-mix-blend-mode: difference;
-mix-blend-mode: exclusion;
-mix-blend-mode: hue;
-mix-blend-mode: saturation;
-mix-blend-mode: color;
-mix-blend-mode: luminosity;
-
-/* グローバル値 */
-mix-blend-mode: initial;
-mix-blend-mode: inherit;
-mix-blend-mode: unset;
-
- -

- -
-
<blend-mode>
-
適用する混合モードを表す {{cssxref("<blend-mode>")}} です。
-
- -

形式文法

- -{{csssyntax}} - -

- - - -
{{EmbedLiveSample("mix-blend-mode", "100%", 1600, "", "", "example-outcome-frame")}}
- -

HTML の例

- -
<div class="isolate">
-  <div class="circle circle-1"></div>
-  <div class="circle circle-2"></div>
-  <div class="circle circle-3"></div>
-</div>
- -
.circle {
-  width: 80px;
-  height: 80px;
-  border-radius: 50%;
-  mix-blend-mode: screen;
-  position: absolute;
-}
-
-.circle-1 {
-  background: red;
-}
-
-.circle-2 {
-  background: lightgreen;
-  left: 40px;
-}
-
-.circle-3 {
-  background: blue;
-  left: 20px;
-  top: 40px;
-}
-
-.isolate {
-  isolation: isolate; /* Without isolation, the background color will be taken into account */
-  position: relative;
-}
- -

{{EmbedLiveSample("HTML_example", "100%", "180")}}

- -

SVG の例

- -

This example reproduces the previous example using SVG.

- -
<svg>
-  <g class="isolate">
-    <circle cx="40" cy="40" r="40" fill="red"/>
-    <circle cx="80" cy="40" r="40" fill="lightgreen"/>
-    <circle cx="60" cy="80" r="40" fill="blue"/>
-  </g>
-</svg>
- -
circle { mix-blend-mode: screen; }
-.isolate { isolation: isolate; } /* Without isolation, the background color will be taken into account */
-
- -

{{EmbedLiveSample("SVG_example", "100%", "180")}}

- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{ SpecName('Compositing', '#mix-blend-mode', 'mix-blend-mode') }}{{ Spec2('Compositing') }}初回定義
- -

{{cssinfo}}

- -

ブラウザーの対応

- -

{{Compat("css.properties.mix-blend-mode")}}

- -

関連情報

- -
    -
  • {{cssxref("<blend-mode>")}}
  • -
  • {{cssxref("background-blend-mode")}}
  • -
diff --git a/files/ja/web/css/mix-blend-mode/index.md b/files/ja/web/css/mix-blend-mode/index.md new file mode 100644 index 0000000000..cd76be032c --- /dev/null +++ b/files/ja/web/css/mix-blend-mode/index.md @@ -0,0 +1,653 @@ +--- +title: mix-blend-mode +slug: Web/CSS/mix-blend-mode +tags: + - CSS + - CSS プロパティ + - ウェブ + - リファレンス + - 合成と混合 +translation_of: Web/CSS/mix-blend-mode +--- +
{{CSSRef}}
+ +

CSSmix-blend-mode プロパティは、要素の内容物と親要素の内容物や要素の背景をどのように混合するかを設定します。

+ +
{{EmbedInteractiveExample("pages/css/mix-blend-mode.html")}}
+ + + +

構文

+ +
/* キーワード値 */
+mix-blend-mode: normal;
+mix-blend-mode: multiply;
+mix-blend-mode: screen;
+mix-blend-mode: overlay;
+mix-blend-mode: darken;
+mix-blend-mode: lighten;
+mix-blend-mode: color-dodge;
+mix-blend-mode: color-burn;
+mix-blend-mode: hard-light;
+mix-blend-mode: soft-light;
+mix-blend-mode: difference;
+mix-blend-mode: exclusion;
+mix-blend-mode: hue;
+mix-blend-mode: saturation;
+mix-blend-mode: color;
+mix-blend-mode: luminosity;
+
+/* グローバル値 */
+mix-blend-mode: initial;
+mix-blend-mode: inherit;
+mix-blend-mode: unset;
+
+ +

+ +
+
<blend-mode>
+
適用する混合モードを表す {{cssxref("<blend-mode>")}} です。
+
+ +

形式文法

+ +{{csssyntax}} + +

+ + + +
{{EmbedLiveSample("mix-blend-mode", "100%", 1600, "", "", "example-outcome-frame")}}
+ +

HTML の例

+ +
<div class="isolate">
+  <div class="circle circle-1"></div>
+  <div class="circle circle-2"></div>
+  <div class="circle circle-3"></div>
+</div>
+ +
.circle {
+  width: 80px;
+  height: 80px;
+  border-radius: 50%;
+  mix-blend-mode: screen;
+  position: absolute;
+}
+
+.circle-1 {
+  background: red;
+}
+
+.circle-2 {
+  background: lightgreen;
+  left: 40px;
+}
+
+.circle-3 {
+  background: blue;
+  left: 20px;
+  top: 40px;
+}
+
+.isolate {
+  isolation: isolate; /* Without isolation, the background color will be taken into account */
+  position: relative;
+}
+ +

{{EmbedLiveSample("HTML_example", "100%", "180")}}

+ +

SVG の例

+ +

This example reproduces the previous example using SVG.

+ +
<svg>
+  <g class="isolate">
+    <circle cx="40" cy="40" r="40" fill="red"/>
+    <circle cx="80" cy="40" r="40" fill="lightgreen"/>
+    <circle cx="60" cy="80" r="40" fill="blue"/>
+  </g>
+</svg>
+ +
circle { mix-blend-mode: screen; }
+.isolate { isolation: isolate; } /* Without isolation, the background color will be taken into account */
+
+ +

{{EmbedLiveSample("SVG_example", "100%", "180")}}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{ SpecName('Compositing', '#mix-blend-mode', 'mix-blend-mode') }}{{ Spec2('Compositing') }}初回定義
+ +

{{cssinfo}}

+ +

ブラウザーの対応

+ +

{{Compat("css.properties.mix-blend-mode")}}

+ +

関連情報

+ +
    +
  • {{cssxref("<blend-mode>")}}
  • +
  • {{cssxref("background-blend-mode")}}
  • +
-- cgit v1.2.3-54-g00ecf