Skip to content
Skip the list of specifications

stroke-dashoffset

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

fill-stroke-3

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 3 that do not: stroke-dashoffset:20px, stroke-dashoffset:50%, stroke-dashoffset:calc(40% + 20px). They come first below, each with its difference map.

What the specification says

Initial value0
Applies totext and SVG shapes
Inheritedyes
Percentagesrelative to the scaled viewport size
Computed valueas specified
Syntax<length-percentage> | <number>

The definition in fill-stroke-3

The measurements

8 examples: three render differently and come first, one matches Chrome and four are 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.

stroke-dashoffset:20px

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 Chrome1,182
The same, on the page without the declaration955
Largest difference on one colour channel204 of 255
The same, on the page without the declaration204 of 255

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

The example’s page

stroke-dashoffset:50%

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 Chrome1,195
The same, on the page without the declaration955
Largest difference on one colour channel204 of 255
The same, on the page without the declaration204 of 255

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

The example’s page

stroke-dashoffset:calc(40% + 20px)

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 Chrome1,159
The same, on the page without the declaration955
Largest difference on one colour channel204 of 255
The same, on the page without the declaration204 of 255

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

The example’s page

stroke-dashoffset:40%

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,077
The same, on the page without the declaration955
Largest difference on one colour channel204 of 255
The same, on the page without the declaration204 of 255

The pages differ by 1,077 pixels with the declaration and by 955 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

stroke-dashoffset:4px

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 Chrome983
The same, on the page without the declaration955
Largest difference on one colour channel204 of 255
The same, on the page without the declaration204 of 255

The pages differ by 983 pixels with the declaration and by 955 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

stroke-dashoffset:0.4

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,012
The same, on the page without the declaration955
Largest difference on one colour channel204 of 255
The same, on the page without the declaration204 of 255

The pages differ by 1,012 pixels with the declaration and by 955 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

stroke-dashoffset:calc(20px + 4px)

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,064
The same, on the page without the declaration955
Largest difference on one colour channel204 of 255
The same, on the page without the declaration204 of 255

The pages differ by 1,064 pixels with the declaration and by 955 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

stroke-dashoffset:2

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 Chrome934
The same, on the page without the declaration955
Largest difference on one colour channel204 of 255
The same, on the page without the declaration204 of 255

The pages differ by 934 pixels with the declaration and by 955 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 3 branches, and 3 of them carry a measurement.

ValueMeasured
20px
4px
calc(20px + 4px)
renders differently
not decided
not decided
50%
40%
calc(40% + 20px)
renders differently
not decided
renders differently
2
0.4
same effect as Chrome
not decided

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