aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css/text-decoration-skip/index.html
blob: 3b4f01199e12bd801cbfdffdbab9bbf12f8d0d44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
title: text-decoration-skip
slug: Web/CSS/text-decoration-skip
tags:
  - CSS
  - CSS テキスト装飾
  - CSS プロパティ
  - Experimental
  - Reference
  - ウェブ
  - レイアウト
translation_of: Web/CSS/text-decoration-skip
---
<div>{{CSSRef}}</div>

<p><span class="seoSummary"><strong><code>text-decoration-skip</code></strong><a href="/ja/docs/Web/CSS">CSS</a> のプロパティで、要素に影響する要素の内容に対するテキスト装飾のどの部分をスキップする必要があるかを設定します。</span>これは要素によって描かれたテキスト装飾の行、および祖先によって描かれたすべてのテキスト装飾を制御します。</p>

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

<pre class="brush:css no-line-numbers">/* キーワード値 */
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;
</pre>

<p>{{cssinfo}}</p>

<h2 id="Syntax" name="Syntax">構文</h2>

<h3 id="Values" name="Values"></h3>

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

<h3 id="Formal_syntax" name="Formal_syntax">形式文法</h3>

{{csssyntax}}

<h2 id="Example" name="Example"></h2>

<h3 id="HTML">HTML</h3>

<pre class="brush: html">&lt;p&gt;Hey, grab a cup of &lt;em&gt;coffee!&lt;/em&gt;&lt;/p&gt;</pre>

<h3 id="CSS">CSS</h3>

<pre class="brush: css; highlight[4]">p {
  margin: 0;
  font-size: 3em;
  text-decoration: underline;
  text-decoration-skip: edges;
}</pre>

<h3 id="Result" name="Result">結果</h3>

<p>{{EmbedLiveSample("Example", "100%", 150)}}</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("CSS4 Text Decoration", "#text-decoration-skip-property", "text-decoration-skip")}}</td>
   <td>{{Spec2("CSS4 Text Decoration")}}</td>
   <td>初回定義</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>

<div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div>

<p>{{Compat("css.properties.text-decoration-skip")}}</p>