Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
---
title: -webkit-text-stroke
slug: Web/CSS/Reference/Properties/-webkit-text-stroke
original_slug: Web/CSS/-webkit-text-stroke
l10n:
sourceCommit: c23237c82089ca6c56946ce1be95f11646823b53
sourceCommit: 1dbba9f7a2c2e35c6e01e8a63159e2aac64b601b
---

**`-webkit-text-stroke`** は [CSS](/ja/docs/Web/CSS) のプロパティで、テキスト文字の輪郭線の[幅](/ja/docs/Web/CSS/Reference/Values/length)と[色](/ja/docs/Web/CSS/Reference/Values/color_value)を指定します。これは個別指定プロパティ {{cssxref("-webkit-text-stroke-width")}} および {{cssxref("-webkit-text-stroke-color")}} の一括指定プロパティです。

## 構成要素のプロパティ

このプロパティは以下の CSS プロパティの一括指定です。

- {{cssxref("-webkit-text-stroke-color")}}
- {{cssxref("-webkit-text-stroke-width")}}

## 構文

```css
/* 幅と色の値 */
-webkit-text-stroke: 4px navy;
text-stroke: 4px navy;

/* グローバル値 */
-webkit-text-stroke: inherit;
Expand All @@ -21,15 +28,6 @@ text-stroke: 4px navy;
-webkit-text-stroke: unset;
```

## 構成要素のプロパティ

このプロパティは以下の CSS プロパティの一括指定です。

- [`-webkit-text-stroke-color`](/ja/docs/Web/CSS/Reference/Properties/-webkit-text-stroke-color)
- [`-webkit-text-stroke-width`](/ja/docs/Web/CSS/Reference/Properties/-webkit-text-stroke-width)

## 構文

### 値

- {{cssxref("<length>")}}
Expand Down Expand Up @@ -79,7 +77,7 @@ text-stroke: 4px navy;

## 関連情報

- [Surfin' Safari blog post announcing this feature](https://www.webkit.org/blog/85/introducing-text-stroke/)
- [Introducing Text-Stroke](https://webkit.org/blog/85/introducing-text-stroke/) - webkit.org (2006)
- [CSS-Tricks article explaining this feature](https://css-tricks.com/adding-stroke-to-web-text/)
- {{cssxref("-webkit-text-stroke-width")}}
- {{cssxref("-webkit-text-stroke-color")}}
Expand Down