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/text-decoration-skip/index.html | 110 +++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 files/ja/web/css/text-decoration-skip/index.html (limited to 'files/ja/web/css/text-decoration-skip') diff --git a/files/ja/web/css/text-decoration-skip/index.html b/files/ja/web/css/text-decoration-skip/index.html new file mode 100644 index 0000000000..f39fe86f4f --- /dev/null +++ b/files/ja/web/css/text-decoration-skip/index.html @@ -0,0 +1,110 @@ +--- +title: text-decoration-skip +slug: Web/CSS/text-decoration-skip +tags: + - CSS + - CSS テキスト装飾 + - CSS プロパティ + - Experimental + - Reference + - ウェブ + - レイアウト +translation_of: Web/CSS/text-decoration-skip +--- +
{{CSSRef}}
+ +

text-decoration-skipCSS のプロパティで、要素に影響する要素の内容に対するテキスト装飾のどの部分をスキップする必要があるかを設定します。これは要素によって描かれたテキスト装飾の行、および祖先によって描かれたすべてのテキスト装飾を制御します。

+ +
+

メモ: 他の多くのブラウザーでは、より単純な {{cssxref("text-decoration-skip-ink")}} プロパティへの対応に集中しています。

+
+ +
/* キーワード値 */
+text-decoration-skip: none;
+text-decoration-skip: objects;
+text-decoration-skip: spaces;
+text-decoration-skip: edges;
+text-decoration-skip: box-decoration;
+
+/* 複数のキーワード */
+text-decoration-skip: objects spaces;
+text-decoration-skip: leading-spaces trailing-spaces;
+text-decoration-skip: objects edges box-decoration;
+
+/* グローバル値 */
+text-decoration-skip: inherit;
+text-decoration-skip: initial;
+text-decoration-skip: unset;
+
+ +

{{cssinfo}}

+ +

構文

+ +

+ +
+
none
+
何もスキップされません。つまり、テキストの装飾はすべてのテキストの内容と不可分のインラインレベルボックスに渡って描かれます。
+
objects
+
要素の中で、画像やインラインブロックなどの不可分のインラインボックスのマージンボックス全体がスキップされます。
+
spaces
+
すべての空白をスキップします。すべての Unicode ホワイトスペース文字、すべての単語区切りに加えて、子孫の {{cssxref("letter-spacing")}} または {{cssxref("word-spacing")}} すべてです。
+
leading-spaces
+
先頭の空白のみがスキップされるという点を除いて、 spaces と同じです。
+
trailing-spaces
+
末尾の空白のみがスキップされるという点を除いて、 spaces と同じです。
+
edges
+
テキスト装飾の始点と終点を、装飾ボックスのコンテンツの辺からわずかに (例えば線の太さの半分だけ) 離します。つまり、子孫ボックスには個別に下線が引かれます。 (これは中国語で、区切って下線を引くのに重要です。)
+
"text-decoration-skip: edges;" の例です。
+
box-decoration
+
テキストの装飾はボックスのマージン、境界、パディング領域をスキップします。これは祖先により重ねられた装飾の効果のみを持ちます。装飾ボックスはボックスの装飾の上に描画を行いません。
+
+ +

形式文法

+ +
{{csssyntax}}
+ +

+ +

HTML

+ +
<p>Hey, grab a cup of <em>coffee!</em></p>
+ +

CSS

+ +
p {
+  margin: 0;
+  font-size: 3em;
+  text-decoration: underline;
+  text-decoration-skip: edges;
+}
+ +

結果

+ +

{{EmbedLiveSample("Example", "100%", 150)}}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("CSS4 Text Decoration", "#text-decoration-skip-property", "text-decoration-skip")}}{{Spec2("CSS4 Text Decoration")}}初回定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("css.properties.text-decoration-skip")}}

-- cgit v1.2.3-54-g00ecf