From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/css/mask-clip/index.html | 152 ++++++++++++++++++++++++++++++++++ 1 file changed, 152 insertions(+) create mode 100644 files/ja/web/css/mask-clip/index.html (limited to 'files/ja/web/css/mask-clip') diff --git a/files/ja/web/css/mask-clip/index.html b/files/ja/web/css/mask-clip/index.html new file mode 100644 index 0000000000..15d56ed307 --- /dev/null +++ b/files/ja/web/css/mask-clip/index.html @@ -0,0 +1,152 @@ +--- +title: mask-clip +slug: Web/CSS/mask-clip +tags: + - CSS + - CSS Masking + - CSS Property + - CSS マスク + - Experimental + - Reference +translation_of: Web/CSS/mask-clip +--- +
{{CSSRef}}
+ +

mask-clipCSS のプロパティで、マスクが影響する領域を指定します。要素の描画されるコンテンツはこの領域に制限されます。

+ +
/* <geometry-box> 値 */
+mask-clip: content-box;
+mask-clip: padding-box;
+mask-clip: border-box;
+mask-clip: margin-box;
+mask-clip: fill-box;
+mask-clip: stroke-box;
+mask-clip: view-box;
+
+/* キーワード値 */
+mask-clip: no-clip;
+
+/* 標準外のキーワード値 */
+-webkit-mask-clip: border;
+-webkit-mask-clip: padding;
+-webkit-mask-clip: content;
+-webkit-mask-clip: text;
+
+/* 複数の値 */
+mask-clip: padding-box, no-clip;
+mask-clip: view-box, fill-box, border-box;
+
+/* グローバル値 */
+mask-clip: inherit;
+mask-clip: initial;
+mask-clip: unset;
+
+ +

{{cssinfo}}

+ +

構文

+ +

1つまたは複数の以下に挙げたキーワード値を、コンマで区切って指定します。

+ +

+ +
+
content-box
+
描画されるコンテンツは、コンテンツボックスでクリッピングされます。
+
padding-box
+
描画されるコンテンツは、パディングボックスでクリッピングされます。
+
border-box
+
描画されるコンテンツは、境界ボックスでクリッピングされます。
+
margin-box
+
描画されるコンテンツは、マージンボックスでクリッピングされます。
+
fill-box
+
描画されるコンテンツは、オブジェクトの囲みボックスでクリッピングされます。
+
stroke-box
+
描画されるコンテンツは、オブジェクトの輪郭線ボックスでクリッピングされます。
+
view-box
+
直近の SVG ビューポートを参照ボックスとして使用します。 viewBox 属性が SVG ビューポートを作成している要素に指定されると、参照ボックスは viewBox 属性で示された座標系の原点に配置され、参照ボックスの寸法は viewBox 属性の幅と高さに設定されます。
+
no-clip
+
描画されるコンテンツはクリッピングされません。
+
border{{non-standard_inline}}
+
このキーワードは border-box と同じ動作をします。
+
padding{{non-standard_inline}}
+
このキーワードは padding-box と同じ動作をします。
+
content{{non-standard_inline}}
+
このキーワードは content-box と同じ動作をします。
+
text{{non-standard_inline}}
+
このキーワードは要素のテキストでマスク画像をクリッピングします。
+
+ +

形式文法

+ +
{{csssyntax}}
+ +

+ +

CSS

+ +
#masked {
+  width: 100px;
+  height: 100px;
+  background-color: #8cffa0;
+  margin: 20px;
+  border: 20px solid #8ca0ff;
+  padding: 20px;
+  mask-image: url(https://mdn.mozillademos.org/files/12668/MDN.svg);
+  mask-size: 100% 100%;
+  mask-clip: border-box; /* Can be changed in the live sample */
+}
+
+ + + +

{{EmbedLiveSample("Example", "220px", "250px")}}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("CSS Masks", "#the-mask-clip", "mask-clip")}}{{Spec2("CSS Masks")}}初回定義
+ +

ブラウザーの対応

+ + + +

{{Compat("css.properties.mask-clip")}}

-- cgit v1.2.3-54-g00ecf