Re: extra commas in path data

Am 30.01.2011 um 08:52 schrieb Dirk Schulze:

> svg-path:
>     wsp* moveto-drawto-command-groups? wsp-opt-comma*
> moveto-drawto-command-groups:
>     moveto-drawto-command-group
>     | moveto-drawto-command-group wsp-opt-comma* moveto-drawto-command-groups
> moveto-drawto-command-group:
>     moveto wsp-opt-comma* drawto-commands?
> drawto-commands:
>     drawto-command
>     | drawto-command wsp-opt-comma* drawto-commands
> 
> ...
> 
> wsp-opt-comma:
>     wsp* comma? wsp*

For clarification: The WebKit-behavior looks like:

svg-path:
    wsp* moveto-drawto-command-groups? comma-wsp
moveto-drawto-command-groups:
    moveto-drawto-command-group
    | moveto-drawto-command-group comma-wsp moveto-drawto-command-groups
moveto-drawto-command-group:
    moveto comma-wsp drawto-commands?
drawto-commands:
    drawto-command
    | drawto-command comma-wsp drawto-commands

Means, we just support one comma between two drawto commands (which makes sense as well in my opinion).

Cheers,
Dirk

Received on Sunday, 30 January 2011 08:06:53 UTC