Re: stroke-dasharray delimiters

On Wednesday, June 11, 2003, 4:45:37 PM, Steve wrote:


SS> The description of the stroke-dasharray property (SVG 1.1, Section 11.4)
SS> says (in part):

>><dasharray> contains a list of comma-separated (with optional white
>>space) <length>s that specify the lengths of alternating dashes and
>>gaps.

SS> And then a little later:

>>A list of comma-separated <length>'s (with optional white space), each
>>of which can have a unit identifier, including specification of a
>>percentage.

SS> I can't see why commas are required here--a parser should be able to
SS> handle a whitespace-delimited list of <length>s without ambiguity, just
SS> as with the tspan element's dx and dy properties, for example.

What you say is true - if the whitespace was changed from optional to
mandatory, then the comma would serve no purpose. However, the
whitespace is optional so the comma does serve a purpose.


-- 
 Chris                            mailto:chris@w3.org

Received on Wednesday, 11 June 2003 15:23:49 UTC