Skip to content
Skip the list of specifications

-webkit-text-stroke

matches Chrome on some values: 3 of 5 decided examples match Chrome; 1 not decided

compat

Some of the examples match Chrome and some do not: the count says how many, and the values that differ are listed first, each with its difference map.

The 2 that do not: -webkit-text-stroke:thick, -webkit-text-stroke:medium. They come first below, each with its difference map.

What the specification says

Initial valueSee individual properties
Applies toSee individual properties
Inheritedyes
PercentagesN/A
Computed valueSee individual properties
Syntax<line-width> || <color>

The definition in compat

The measurements

6 examples: two render differently and come first, three match Chrome and one is not decided. Each is one declaration on a small page, drawn by Chrome and by our engine. Drag on a picture to move the line between them.

-webkit-text-stroke:thick

renders differently
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome7,092
The same, on the page without the declaration1,402
Largest difference on one colour channel238 of 255
The same, on the page without the declaration45 of 255

The declaration takes effect differently from Chrome: the difference map shows where.

The example’s page

-webkit-text-stroke:medium

renders differently
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome6,800
The same, on the page without the declaration1,402
Largest difference on one colour channel152 of 255
The same, on the page without the declaration45 of 255

The declaration takes effect differently from Chrome: the difference map shows where.

The example’s page

-webkit-text-stroke:thin

not decided
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome1,476
The same, on the page without the declaration1,402
Largest difference on one colour channel14 of 255
The same, on the page without the declaration45 of 255

The pages differ by 1,476 pixels with the declaration and by 1,402 without it: a little more, but within the difference the text already makes, so the measurement does not decide this example.

The example’s page

-webkit-text-stroke:20px

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome0
The same, on the page without the declaration1,402
Largest difference on one colour channel0 of 255
The same, on the page without the declaration45 of 255

Identical to Chrome.

The example’s page

-webkit-text-stroke:4px

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome0
The same, on the page without the declaration1,402
Largest difference on one colour channel0 of 255
The same, on the page without the declaration45 of 255

Identical to Chrome.

The example’s page

-webkit-text-stroke:calc(20px + 4px)

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome496
The same, on the page without the declaration1,402
Largest difference on one colour channel48 of 255
The same, on the page without the declaration45 of 255

The pages differ by 496 pixels with the declaration and by 1,402 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

Which values were measured

A match on one example means a match at the value tried. The property’s grammar has 6 branches, and 4 of them carry a measurement.

ValueMeasured
20px
4px
calc(20px + 4px)
same effect as Chrome
same effect as Chrome
same effect as Chrome
hairlinenot measured
thin
not decided
medium
renders differently
thick
renders differently
#e07a1fnot measured

Measured against Chrome 148.0.7778.96 on 5 November 2026, with up to 40 candidate values tried per property. How it was measured