Skip to content
Skip the list of specifications

stroke-dasharray

renders differently: 0 of 4 decided examples match Chrome; 4 not decided

fill-stroke-3

The property takes effect, but our pixels are not Chrome’s. The difference map on this page shows where.

What the specification says

Initial valuenone
Applies totext and SVG shapes
Inheritedyes
Percentagesrelative to the scaled viewport size
Computed valueas specified
Syntaxnone | [<length-percentage> | <number>]+#

The definition in fill-stroke-3

The measurements

8 examples: four render differently and come first 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-dasharray:2

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,501
The same, on the page without the declaration809
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-dasharray:0.4

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 Chrome13,309
The same, on the page without the declaration809
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-dasharray:4px

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,322
The same, on the page without the declaration809
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-dasharray:calc(20px + 4px)

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,005
The same, on the page without the declaration809
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-dasharray:20px

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

The pages differ by 904 pixels with the declaration and by 809 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-dasharray:50%

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

The pages differ by 918 pixels with the declaration and by 809 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-dasharray: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 Chrome875
The same, on the page without the declaration809
Largest difference on one colour channel204 of 255
The same, on the page without the declaration204 of 255

The pages differ by 875 pixels with the declaration and by 809 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-dasharray:calc(40% + 20px)

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

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

Which values were measured

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

ValueMeasured
20px
4px
calc(20px + 4px)
not decided
renders differently
renders differently
50%
40%
calc(40% + 20px)
not decided
not decided
not decided
2
0.4
renders differently
renders differently
nonenot 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