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

No whitespace is mandatory between tokens in the CSS value grammar (unless prose specifically says it is), so long as the tokenizer can still produce the desired token stream. So "100 200-300 400" is valid under CSS syntax.

The new grammar should definitely be adjusted to make the whole thing optional; requiring at least one number seems like an unintentional change worth fixing.

The change in mandatory whitespace, tho, seems like it's ok to keep. That looks like it was a completely accidental requirement in SVG 1.1, considering that in other places such as path it's completely fine to have no whitespace between anything, so long as the numbers can be unambiguously separated.  BNF is just kinda hard for humans to write consistently.

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

Received on Tuesday, 10 December 2019 16:08:38 UTC