Open ewilligers opened 6 years ago
Note that Blink and Safari, and also Edge when in Quirks mode, support numeric values for baseline-shift
.
Blink and Safari also support numeric property values for cx
cy
r
rx
ry
x
y
. All of the geometry properties and baseline-shift
have exceeding low <number>
usage as properties.
However, stroke-width
and stroke-dasharray
each have approximately 1% <number>
usage as properties:
https://developer.microsoft.com/en-us/microsoft-edge/platform/usage/css/stroke-dashoffset/
https://developer.microsoft.com/en-us/microsoft-edge/platform/usage/css/stroke-width/
The SVG WG is open to to accepting numeric values for the geometry properties (given that two engines have shipped support), but it was noted that they may become general CSS properties in future, hence the need to check these too with CSS WG.
Agree that stroke-width / stroke-dasharray should support numbers in the properties. I would prefer not to support plain numbers in new presentation attributes for existing SVG properties, but I can see the appeal of consistency with the original SVG properties.
The CSS Working Group just discussed stroke-width and stroke-dasharray accept numbers
, and agreed to the following:
RESOLVED: Only accept unitless values on SVG 1.1 supported properties with the exception of baseline-shift
All browsers support numeric values for stroke-width and stroke-dasharray.
<length-percentage>
should change to[<length-percentage> | <number>]
.Precedent: https://svgwg.org/svg2-draft/types.html#syntax "Replace all instances of
<length-percentage>
in grammar with[<length-percentage> | <number>]
."