W3C home > Mailing lists > Public > www-svg@w3.org > April 2010

Re: Elliptical arc minimal syntax

From: Jeff Schiller <codedread@gmail.com>
Date: Mon, 5 Apr 2010 08:23:23 -0500
Message-ID: <z2ida131fde1004050623sce5c454ch291fb27ae0e08658@mail.gmail.com>
To: www-svg <www-svg@w3.org>
I misinterpreted this - I think the reason is that a leading zero is
not valid for numbers greater than or equal to 1 so 0100 should
probably be interpreted as 0,100?

Two more data points:

  * Batik 1.7 renders it
  * Inkscape does not render it

Regards,
Jeff

On Mon, Apr 5, 2010 at 7:49 AM, Jeff Schiller <codedread@gmail.com> wrote:
> <svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"
> xmlns:xlink="http://www.w3.org/1999/xlink">
>  <g>
>  <title>Layer 1</title>
>  <path id="svgbar" d="m23,45a7,7 0 1 00,10h54a7,7 0 1 00,-10z"/>
>  </g>
> </svg>
>
> Is the following path correct according to the grammar at
> http://www.w3.org/TR/SVG11/paths.html#PathDataBNF ?  I guess the
> grammar also needs to take into account the rule that "Superfluous
> white space and separators such as commas can be eliminated"
>
> i.e. is it legal for browsers to skip the space and comma between the
> largeArcFlag and the sweepFlag because those values can only be 0 or
> 1?
>
>  * Mozilla, Opera and IE9 allow this.
>  * WebKit does not.
>
> Thanks,
> Jeff
>
Received on Monday, 5 April 2010 13:23:55 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:44 GMT