Open
Description
This package defines the syntax for stroke-dasharray
as none | [<length-percentage> | <number>]+#
.
The spec at https://drafts.fxtf.org/fill-stroke-3/#propdef-stroke-dasharray defines it as none | <length-percentage>+#
.
Full definition of the property in the fill-stroke.json file
{
"name": "stroke-dasharray",
"href": "https://drafts.fxtf.org/fill-stroke-3/#propdef-stroke-dasharray",
"value": "none | [<length-percentage> | <number>]+#",
"initial": "none",
"appliesTo": "text and SVG shapes",
"inherited": "yes",
"percentages": "relative to the scaled viewport size",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "repeatable list",
"media": "visual",
"values": [
{
"name": "none",
"prose": "No dashing: the stroke is drawn continuously.",
"href": "https://drafts.fxtf.org/fill-stroke-3/#valdef-stroke-dasharray-none",
"type": "value",
"value": "none"
},
{
"name": "<length-percentage>+#",
"prose": "Specifies a dashing pattern to use. Each <length-percentage> value represents the length of the next dash or gap (beginning with the first dash and alternating from there) of the stroke. The pattern repeats over the length of the stroke. (If the number of values is odd, the pattern behaves as if it was duplicated to yield an even number of values.) The dashing pattern is reset and begins anew at the start of each subpath. Negative values are invalid. If all values are zero, it is treated as none.",
"href": "https://drafts.fxtf.org/fill-stroke-3/#valdef-stroke-dasharray-length-percentage",
"type": "value",
"value": "<length-percentage>+#"
}
],
"styleDeclaration": [
"stroke-dasharray",
"strokeDasharray"
]
}