Re: [svgwg] points-attribute: whitespaces and empty strings in SVG 1.1 vs SVG 2 (#763)

Thanks for the clarification re: no whitespace is mandarory in CSS notation `<number>+`. Does this means "1.0.5" is also a valid `<number>+`, parsed as "1.0 0.5"? Such things are allowed in path data, but not allowed for the points attribute as per the BNF of SVG 1.1.

Although I hate optional whitespaces in path data, I agree with you and would vote for consistency: make whatever is allowed in path data be also allowed in the points attribute. This includes "200-300" and "1.0.5", either within a pair, or across pairs. The spec can then be written:

```
<points> = [ <number># ]*
```

I've swapped the `#` and `+`, and changed `+` to `*`. We technically don't need the swap, but I think it expresses the intent better, and reflects the "implicitly recommended syntax" as per the provided examples: commas within pairs, no commas between pairs.

-- 
GitHub Notification of comment by dalboris
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/763#issuecomment-564115872 using your GitHub account

Received on Tuesday, 10 December 2019 16:30:01 UTC