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 value | none |
|---|---|
| Applies to | text and SVG shapes |
| Inherited | yes |
| Percentages | relative to the scaled viewport size |
| Computed value | as specified |
| Syntax | none | [<length-percentage> | <number>]+# |
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

| Pixels that differ from Chrome | 7,501 |
|---|---|
| The same, on the page without the declaration | 809 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 204 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
stroke-dasharray:0.4
renders differently

| Pixels that differ from Chrome | 13,309 |
|---|---|
| The same, on the page without the declaration | 809 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 204 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
stroke-dasharray:4px
renders differently

| Pixels that differ from Chrome | 1,322 |
|---|---|
| The same, on the page without the declaration | 809 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 204 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
stroke-dasharray:calc(20px + 4px)
renders differently

| Pixels that differ from Chrome | 1,005 |
|---|---|
| The same, on the page without the declaration | 809 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 204 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
stroke-dasharray:20px
not decided

| Pixels that differ from Chrome | 904 |
|---|---|
| The same, on the page without the declaration | 809 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 204 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.
stroke-dasharray:50%
not decided

| Pixels that differ from Chrome | 918 |
|---|---|
| The same, on the page without the declaration | 809 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 204 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.
stroke-dasharray:40%
not decided

| Pixels that differ from Chrome | 875 |
|---|---|
| The same, on the page without the declaration | 809 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 204 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.
stroke-dasharray:calc(40% + 20px)
not decided

| Pixels that differ from Chrome | 938 |
|---|---|
| The same, on the page without the declaration | 809 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 204 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.
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.
| Value | Measured |
|---|---|
20px4pxcalc(20px + 4px) | not decided renders differently renders differently |
50%40%calc(40% + 20px) | not decided not decided not decided |
20.4 | renders differently renders differently |
none | not 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