From f465736494c77f022062f8c76d1f329888be8824 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Tue, 8 Mar 2022 00:13:02 +0900 Subject: 2021/08/13 時点の英語版に同期 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ja/web/css/-webkit-text-stroke-color/index.md | 122 +++++++++------------ 1 file changed, 53 insertions(+), 69 deletions(-) (limited to 'files/ja/web/css/-webkit-text-stroke-color') diff --git a/files/ja/web/css/-webkit-text-stroke-color/index.md b/files/ja/web/css/-webkit-text-stroke-color/index.md index b327da4d76..fcbd845d11 100644 --- a/files/ja/web/css/-webkit-text-stroke-color/index.md +++ b/files/ja/web/css/-webkit-text-stroke-color/index.md @@ -4,17 +4,19 @@ slug: Web/CSS/-webkit-text-stroke-color tags: - CSS - CSS プロパティ - - Non-standard - - Reference - - WebKit 拡張 - 標準外 + - リファレンス + - WebKit + - recipe:css-property +browser-compat: css.properties.-webkit-text-stroke-color translation_of: Web/CSS/-webkit-text-stroke-color --- -
{{CSSRef}}{{Non-standard_header}}
+{{CSSRef}}{{Non-standard_header}} -

-webkit-text-stroke-color は {{Glossary("CSS")}} のプロパティで、テキストの文字の角のを示します。このプロパティが設定されない場合、 {{cssxref("color")}} プロパティの値が使用されます。

+**`-webkit-text-stroke-color`** は CSS のプロパティで、テキストの文字の線の[色](/ja/docs/Web/CSS/color_value)を示します。このプロパティが設定されない場合、 {{cssxref("color")}} プロパティの値が使用されます。 -
/* <color> 値 */
+```css
+/*  値 */
 -webkit-text-stroke-color: red;
 -webkit-text-stroke-color: #e08ab4;
 -webkit-text-stroke-color: rgb(200, 100, 0);
@@ -23,86 +25,68 @@ translation_of: Web/CSS/-webkit-text-stroke-color
 -webkit-text-stroke-color: inherit;
 -webkit-text-stroke-color: initial;
 -webkit-text-stroke-color: unset;
-
+``` -

{{cssinfo}}

+## 構文 -

構文

+### 値 -

+ `` + - : 線の色。 -
-
<color>
-
角の色。
-
+## 公式定義 -

形式文法

+{{CSSInfo}} + +## 形式文法 {{csssyntax}} -

+## 例 + +### 角の色を変化させる -

HTML コンテンツ

+#### HTML -
<p>Text with stroke</p>
-<input type="color" value="#ff0000">
+```html +

Text with stroke

+ +``` -

CSS コンテンツ

+#### CSS -
p {
+```css
+p {
   margin: 0;
   font-size: 4em;
   -webkit-text-stroke-width: 3px;
   -webkit-text-stroke-color: #ff0000; /* ライブサンプルで変更可能 */
 }
-
- - - -

{{EmbedLiveSample("Example", "500px", "100px")}}

- -

仕様書

- - - - - - - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('Compat', '#the-webkit-text-stroke-color', '-webkit-text-stroke-color')}}{{Spec2('Compat')}}初回標準化
Safari CSS Reference
- 文書内の '-webkit-text-stroke-color'
標準外で非公式の文書化初回文書化
- -

ブラウザーの互換性

- -

{{Compat("css.properties.-webkit-text-stroke-color")}}

- -

関連情報

- - +}); +``` + +#### 結果 + +{{EmbedLiveSample("Varying_the_stroke_color", "500px", "100px")}} + +## 仕様書 + +{{Specifications}} + +## ブラウザーの互換性 + +{{Compat}} + +## 関連情報 + +- [Surfin' Safari blog post announcing this feature](https://www.webkit.org/blog/85/introducing-text-stroke/) +- [CSS-Tricks article explaining this feature](https://css-tricks.com/adding-stroke-to-web-text/) +- {{cssxref("-webkit-text-fill-color")}} +- {{cssxref("-webkit-text-stroke-width")}} +- {{cssxref("-webkit-text-stroke")}} -- cgit v1.2.3-54-g00ecf