From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../ja/web/css/text-decoration-skip-ink/index.html | 118 +++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 files/ja/web/css/text-decoration-skip-ink/index.html (limited to 'files/ja/web/css/text-decoration-skip-ink/index.html') diff --git a/files/ja/web/css/text-decoration-skip-ink/index.html b/files/ja/web/css/text-decoration-skip-ink/index.html new file mode 100644 index 0000000000..a0c130adbb --- /dev/null +++ b/files/ja/web/css/text-decoration-skip-ink/index.html @@ -0,0 +1,118 @@ +--- +title: text-decoration-skip-ink +slug: Web/CSS/text-decoration-skip-ink +tags: + - CSS + - CSS テキスト装飾 + - CSS プロパティ + - Experimental + - Reference + - Web + - text-decoration-skip-ink + - ウェブ + - レイアウト +translation_of: Web/CSS/text-decoration-skip-ink +--- +
{{CSSRef}}
+ +

CSStext-decoration-skip-ink プロパティは、上線や下線が文字のアセンダーやディセンダーを通過するときにどのように引くのかを指定します。

+ +
{{EmbedInteractiveExample("pages/css/text-decoration-skip-ink.html")}}
+ + + +

text-decoration-skip-ink は {{cssxref("text-decoration")}} 一括指定の一部ではありません。

+ +

構文

+ +
/* 単一キーワード */
+text-decoration-skip-ink: none;
+text-decoration-skip-ink: auto;
+text-decoration-skip-ink: all;
+
+/* グローバルキーワード */
+text-decoration-skip: inherit;
+text-decoration-skip: initial;
+text-decoration-skip: unset;
+
+ +

+ +
+
none
+
下線と上線は、アセンダーとディセンダーの部分を含め、テキストコンテンツの全体に渡って引かれます。
+
auto
+
既定値です。 — ブラウザーは、下線と上線が文字に触れたり近づいたりしないよう、中断を行う可能性があります。つまり、線が文字を横切ろうとするところで中断されます。
+
all
+
ブラウザーは、下線や上線が文字に触れたり近づいたりしないように必ず中断を行います。これは、 auto の動作が中断を発生させない可能性がある中国語、日本語、韓国語の特定のフォントで有用です。
+
"text-decoration-skip-ink" の例
+
+ +

形式文法

+ +
{{csssyntax}}
+ +

+ +

HTML

+ +
<p>You should go on a quest for a cup of coffee.</p>
+<p class="no-skip-ink">Or maybe you'd prefer some tea?</p>
+<p>この文は、 text-decoration-skip-ink: auto の使用例を示しています。</p>
+<p class="skip-ink-all">この文は、 text-decoration-skip-ink: all の使用例を示しています。</p>
+
+ +

CSS

+ +
p {
+  font-size: 1.5em;
+  text-decoration: underline blue;
+  text-decoration-skip-ink: auto; /* this is the default anyway */
+}
+
+.no-skip-ink {
+  text-decoration-skip-ink: none;
+}
+
+.skip-ink-all{
+  text-decoration-skip-ink: all;
+}
+
+ +

結果

+ +

{{EmbedLiveSample("Examples", "100%", 250)}}

+ +

仕様書

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

{{cssinfo}}

+ +

ブラウザーの互換性

+ + + +

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

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf