Re: [svgwg] Review property value definitions to ensure unitless lengths are correctly included

`stroke-dashoffset` and `stroke-width` accept unitless lengths in SVG 1.1, and in all browsers.
The SVG 1.1 definition for [length](https://www.w3.org/TR/SVG11/types.html#DataTypeLength) says
> A length is a distance measurement, given as a number along with a unit which may be optional.

We kept the SVG 1.1 grammar `<length>` for these properties, but this is incorrect as we changed the definition of `<length>`. We need to change `stroke-dashoffset` and `stroke-width` to accept `<number>`


> is the stroke-width definition in SVG2 the normative one, or the one in CSS fill and stroke?

The SVG 2 definition is normative. CSS Fill and Stroke is not a normative reference for SVG 2.


-- 
GitHub Notification of comment by ewilligers
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/534#issuecomment-439610410 using your GitHub account

Received on Saturday, 17 November 2018 11:40:31 UTC