aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css/mask-border-source
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-10-01 00:02:42 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2021-10-12 01:46:21 +0900
commitea197b97a285a7f4fb51f252ac25ad8a5d6482c8 (patch)
treed14dc93e56270cd1bc597a2b306444f44d9d7f4a /files/ja/web/css/mask-border-source
parentf5534fe3671df79e2145c50b9e14c0cbfd9d330b (diff)
downloadtranslated-content-ea197b97a285a7f4fb51f252ac25ad8a5d6482c8.tar.gz
translated-content-ea197b97a285a7f4fb51f252ac25ad8a5d6482c8.tar.bz2
translated-content-ea197b97a285a7f4fb51f252ac25ad8a5d6482c8.zip
変換の準備
Diffstat (limited to 'files/ja/web/css/mask-border-source')
-rw-r--r--files/ja/web/css/mask-border-source/index.html73
-rw-r--r--files/ja/web/css/mask-border-source/index.md86
2 files changed, 86 insertions, 73 deletions
diff --git a/files/ja/web/css/mask-border-source/index.html b/files/ja/web/css/mask-border-source/index.html
deleted file mode 100644
index f9490dcbe8..0000000000
--- a/files/ja/web/css/mask-border-source/index.html
+++ /dev/null
@@ -1,73 +0,0 @@
----
-title: mask-border-source
-slug: Web/CSS/mask-border-source
-tags:
- - CSS
- - CSS プロパティ
- - CSS マスク
- - Experimental
- - Reference
-translation_of: Web/CSS/mask-border-source
----
-<div>{{CSSRef}}{{SeeCompatTable}}</div>
-
-<p><a href="/ja/docs/Web/CSS">CSS</a> の <strong><code>mask-border-source</code></strong> プロパティは、要素の<a href="/ja/docs/Web/CSS/mask-border">マスク境界</a>を生成するのに使われる元の画像を設定します。</p>
-
-<p>{{cssxref("mask-border-slice")}} プロパティは、元の画像を最終的なマスク境界に動的に適用する上で、複数の領域に分割するために使用されます。</p>
-
-<h2 id="Syntax" name="Syntax">構文</h2>
-
-<pre class="brush:css no-line-numbers">/* Keyword 値 */
-mask-border-source: none;
-
-/* &lt;image&gt; 値 */
-mask-border-source: url(image.jpg);
-mask-border-source: linear-gradient(to top, red, yellow);
-
-/* グローバル値 */
-mask-border-source: inherit;
-mask-border-source: initial;
-mask-border-source: unset;
-</pre>
-
-<h3 id="Values" name="Values">値</h3>
-
-<dl>
- <dt><code>none</code></dt>
- <dd>マスク境界は使用されません。</dd>
- <dt>{{cssxref("&lt;image&gt;")}}</dt>
- <dd>マスク境界に使用する画像への参照です。</dd>
-</dl>
-
-<h3 id="Formal_syntax" name="Formal_syntax">形式文法</h3>
-
-{{csssyntax}}
-
-<h2 id="Examples" name="Examples">例</h2>
-
-<p>例については {{cssxref("mask-border")}} をご覧ください。</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("CSS Masks", "#propdef-mask-border-source", "mask-border-source")}}</td>
- <td>{{Spec2("CSS Masks")}}</td>
- <td>初回定義</td>
- </tr>
- </tbody>
-</table>
-
-<p>{{cssinfo}}</p>
-
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2>
-
-<p>TBD</p>
diff --git a/files/ja/web/css/mask-border-source/index.md b/files/ja/web/css/mask-border-source/index.md
new file mode 100644
index 0000000000..4363af2925
--- /dev/null
+++ b/files/ja/web/css/mask-border-source/index.md
@@ -0,0 +1,86 @@
+---
+title: mask-border-source
+slug: Web/CSS/mask-border-source
+tags:
+ - CSS
+ - CSS Masking
+ - CSS プロパティ
+ - Experimental
+ - NeedsCompatTable
+ - NeedsExample
+ - Reference
+ - recipe:css-property
+browser-compat: css.properties.mask-border-source
+translation_of: Web/CSS/mask-border-source
+---
+{{CSSRef}}
+
+**`mask-border-source`** は [CSS](/ja/docs/Web/CSS) のプロパティで、要素の[マスク境界](/ja/docs/Web/CSS/mask-border)を生成するのに使われる元の画像を設定します。
+
+{{cssxref("mask-border-slice")}} プロパティは、元の画像を最終的なマスク境界に動的に適用する上で、複数の領域に分割するために使用されます。
+
+## 構文
+
+```css
+/* Keyword 値 */
+mask-border-source: none;
+
+/* <image> 値 */
+mask-border-source: url(image.jpg);
+mask-border-source: linear-gradient(to top, red, yellow);
+
+/* グローバル値 */
+mask-border-source: inherit;
+mask-border-source: initial;
+mask-border-source: revert;
+mask-border-source: unset;
+```
+
+### 値
+
+- `none`
+ - : マスク境界は使用されません。
+- {{cssxref("&lt;image&gt;")}}
+ - : マスク境界に使用する画像への参照です。
+
+## 公式定義
+
+{{cssinfo}}
+
+## 形式文法
+
+{{csssyntax}}
+
+## 例
+
+### Basic usage
+
+This property doesn't appear to be supported anywhere yet. When it eventually starts to be supported, it will serve to define the source of the border mask.
+
+```css
+mask-border-source: url(image.jpg);
+```
+
+Chromium-based browsers support an outdated version of this property — `mask-box-image-source` — with a prefix:
+
+```css
+-webkit-mask-box-image-source: url(image.jpg);
+```
+
+> **Note:** The [`mask-border`](/ja/docs/Web/CSS/mask-border) page features a working example (using the out-of-date prefixed border mask properties supported in Chromium), so you can get an idea of the effect.
+
+## Specifications
+
+{{Specifications}}
+
+## Browser compatibility
+
+{{Compat}}
+
+## See also
+
+- {{cssxref("mask-border")}}
+- {{cssxref("mask-border-mode")}}
+- {{cssxref("mask-border-outset")}}
+- {{cssxref("mask-border-repeat")}}
+- {{cssxref("mask-border-width")}}