W3C home > Mailing lists > Public > www-svg@w3.org > October 2016

Re: Incorrect path grammar test 'paths-data-20-f.svg'

From: Paul LeBeau <paul.lebeau@gmail.com>
Date: Wed, 12 Oct 2016 23:41:02 +1300
Message-ID: <CACfsppDesLqAUHt8R1ndaygeEFzBgZKm+zhfiQ=FN=M5QmKnEg@mail.gmail.com>
To: Tyler Denniston <denniston.t@gmail.com>
Cc: www-svg <www-svg@w3.org>
Hi

Both of those lines look correct to me.

   - "comma-wsp" basically means comma and/or whitespace (
   https://www.w3.org/TR/SVG/single-page.html#types-CommaWSP ). So the
   first line is okay.
   - The second one is missing any comma or whitespace between some
   parameters, so is supposed to fail.

Paul


On 12 October 2016 at 10:29, Tyler Denniston <denniston.t@gmail.com> wrote:

> Hello,
>
> I think that one of the 'paths-data-20-f.svg' sub-tests is incorrect.
> In particular this relates to the elliptical arc path grammar. This
> test:
>
>     <!-- no commawsp before arc flags -->
>     <path d="M200,200 h-25 a25,25 0 1,0 25,-25 z" fill="lime"
> stroke="lime"/>
>     <path d="M200,200 h-25 a25,2501 025,-25 z" fill="red"/>
>
> seems to be testing that there is no 'comma-wsp' required before the
> arc flags. However, according to my reading of the grammar in SVG 1.1
> (and it is unchanged in 2.0), 'comma-wsp' is required before the arc
> flags. In particular:
>
> elliptical-arc:
>     ( "A" | "a" ) wsp* elliptical-arc-argument-sequence
> elliptical-arc-argument-sequence:
>     elliptical-arc-argument
>     | elliptical-arc-argument comma-wsp? elliptical-arc-argument-sequence
> elliptical-arc-argument:
>     nonnegative-number comma-wsp? nonnegative-number comma-wsp?
>         number comma-wsp flag comma-wsp? flag comma-wsp? coordinate-pair
>
> Note the 'comma-wsp' before the first 'flag' occurrence.
>
> The test I'm referring to is approved and available here:
> https://www.w3.org/Graphics/SVG/Test/20110816/harness/
> htmlObjectApproved/paths-data-20-f.html
>
> Am I misunderstanding something, or is the test incorrect?
>
> Tyler
>
>
>
Received on Wednesday, 12 October 2016 10:41:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:55:06 UTC