w3c / svgwg

SVG Working Group specifications
Other
704 stars 132 forks source link

Error about drawto_command in SVG 2.0 path EBNF #929

Closed ish-kafel closed 8 months ago

ish-kafel commented 8 months ago

It seens like SVG 2.0 does not support wsp in different drawto_command but SVG 1.1 does, is that an error?

in SVG 2.0:

svg_path::= wsp* moveto? (moveto drawto_command*)?

drawto_command::=
    moveto
    | closepath
    | lineto
    | horizontal_lineto
    | vertical_lineto
    | curveto
    | smooth_curveto
    | quadratic_bezier_curveto
    | smooth_quadratic_bezier_curveto
    | elliptical_arc

in SVG 1.1:

svg-path:
    wsp* moveto-drawto-command-groups? wsp*
moveto-drawto-command-groups:
    moveto-drawto-command-group
    | moveto-drawto-command-group wsp* moveto-drawto-command-groups
moveto-drawto-command-group:
    moveto wsp* drawto-commands?
drawto-commands:
    drawto-command
    | drawto-command wsp* drawto-commands
drawto-command:
    closepath
    | lineto
    | horizontal-lineto
    | vertical-lineto
    | curveto
    | smooth-curveto
    | quadratic-bezier-curveto
    | smooth-quadratic-bezier-curveto
    | elliptical-arc
dalboris commented 8 months ago

Yes you are correct, but this is a duplicate of https://github.com/w3c/svgwg/pull/778

ish-kafel commented 8 months ago

thanks for your mention!