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

Elliptical arc minimal syntax

From: Jeff Schiller <codedread@gmail.com>
Date: Mon, 5 Apr 2010 07:49:19 -0500
Message-ID: <k2sda131fde1004050549if31dde59waa1a278075852939@mail.gmail.com>
To: www-svg <www-svg@w3.org>
<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 12:49:58 GMT

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