aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css/-webkit-text-stroke-width/index.html
blob: e8e39b12a0d3491de3607f58a8920dcb4cc1a988 (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
111
112
113
114
115
116
117
118
119
---
title: '-webkit-text-stroke-width'
slug: Web/CSS/-webkit-text-stroke-width
tags:
  - CSS
  - CSS プロパティ
  - Non-standard
  - Reference
  - WebKit
  - WebKit 拡張
  - 標準外
translation_of: Web/CSS/-webkit-text-stroke-width
---
<div>{{CSSRef}}{{Non-standard_header}}</div>

<p><strong><code>-webkit-text-stroke-width</code></strong><a href="/ja/docs/Web/CSS">CSS</a> のプロパティで、テキストの角の太さを指定します。</p>

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

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

<pre class="brush:css notranslate">/* キーワード値 */
-webkit-text-stroke-width: thin;
-webkit-text-stroke-width: medium;
-webkit-text-stroke-width: thick;

/* &lt;length&gt; 値 */
-webkit-text-stroke-width: 2px;
-webkit-text-stroke-width: 0.1em;
-webkit-text-stroke-width: 1mm;
-webkit-text-stroke-width: 5pt;

/* グローバル値 */
-webkit-text-stroke-width: inherit;
-webkit-text-stroke-width: initial;
-webkit-text-stroke-width: unset;
</pre>

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

<dl>
 <dt><code>&lt;line-width&gt;</code></dt>
 <dd>角の太さ。</dd>
</dl>

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

{{csssyntax}}

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

<h3 id="CSS_Content" name="CSS_Content">CSS コンテンツ</h3>

<pre class="brush: css notranslate">p {
  margin: 0;
  font-size: 4em;
  -webkit-text-stroke-color: red;
}

#thin {
  -webkit-text-stroke-width: thin;
}

#medium {
  -webkit-text-stroke-width: 3px;
}

#thick {
  -webkit-text-stroke-width: 1.5mm;
}
</pre>

<h3 id="HTML_Content" name="HTML_Content">HTML コンテンツ</h3>

<pre class="brush: html notranslate">&lt;p id="thin"&gt;Thin stroke&lt;/p&gt;
&lt;p id="medium"&gt;Medium stroke&lt;/p&gt;
&lt;p id="thick"&gt;Thick stroke&lt;/p&gt;
</pre>

<p>{{EmbedLiveSample("Example", "450px", "230px")}}</p>

<h2 id="Specifications" name="Specifications">仕様書</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('Compat', '#the-webkit-text-stroke-width', '-webkit-text-stroke-width')}}</td>
   <td>{{Spec2('Compat')}}</td>
   <td>初回標準化</td>
  </tr>
  <tr>
   <td><a class="external external-icon" href="https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html#//apple_ref/doc/uid/TP30001266--webkit-text-stroke-width" hreflang="en" lang="en">Safari CSS Reference<br>
    <small>文書内の '-webkit-text-stroke-width'</small></a></td>
   <td>標準外で非公式の文書化</td>
   <td>初回文書化</td>
  </tr>
 </tbody>
</table>

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

<p>{{Compat("css.properties.-webkit-text-stroke-width")}}</p>

<h2 id="See_Also" name="See_Also">関連情報</h2>

<ul>
 <li><a href="https://www.webkit.org/blog/85/introducing-text-stroke/">Surfin' Safari blog post announcing this feature</a></li>
 <li><a href="https://css-tricks.com/adding-stroke-to-web-text/">CSS-Tricks article explaining this feature</a></li>
 <li>{{cssxref("-webkit-text-stroke-color")}}</li>
 <li>{{cssxref("-webkit-text-stroke")}}</li>
 <li>{{cssxref("-webkit-text-fill-color")}}</li>
</ul>