- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Mon, 26 Nov 2012 16:15:49 -0800
- To: Dirk Schulze <dschulze@adobe.com>
- Cc: SVG public list <www-svg@w3.org>
On Mon, Nov 26, 2012 at 4:07 PM, Dirk Schulze <dschulze@adobe.com> wrote: > I would disagree. I think it is totally confusing that it starts with a distance. but even if we go this way: it means you can just add one distance per <url>, after that you need to respecify it. Which is… a lot of code. It also means that you can not specify different markers with different repeatings in different contexts, you are always bound to one pattern, and can't specify independent patterns as well, or need to continue listing the urls until the frequencies of the two different patterns come together. Just see the following two patterns as example: > > -------------------#-------------------#-------------------#-------------------#-------------------#-------------------#-------------------#-------------------#-------------------# > --------O--------O--------O--------O--------O--------O--------O--------O--------O--------O--------O--------O--------O--------O--------O--------O--------O--------O--------O--------O > > These are two marker patterns that you want to apply on a path. I wrote the whole sequence until both patterns start on the same peak again. With your proposal it would be: > > 9px url(#m2), 18px url(#m2), 20px url(#m1), 27px url(#m2), 36px url(#m2), 40px url(#m1), 45px url(#m2), 54px url(#m2), 60px url(#m1), 63px url(#m2), 72px url(#m2), 80px url(#m1), 81px url(#m2), 90px url(#m2), 99px url(#m2), 100px url(#m1), 108px url(#m2), 117px url(#m2), 120px url(#m1), 126px url(#m2), 135px url(#m2), 140px url(#m1), 144px url(#m2), 153px url(#m2), 160px url(#m1), 162px url(#m2), 171px url(#m2), 180px url(#m1), 180px url(#m2) > > In comparison to: > > url(#m1) 20px url(#m2) 9px No, you didn't read my grammar correctly, nor my additional explanations where I said that the ability to set up independent marker tracks seems useful. In my proposal, you'd write it as: marker-pattern: url(#m1) 20px, url(#m2) 9px; If you think that looks exactly like yours (except there's a comma separating the separate marker tracks), you're right! I think my proposal mixes the best of your proposal and the current grammar. It lets you mix multiple markers in a single track, *and* it lets you do independent tracks. ~TJ
Received on Tuesday, 27 November 2012 00:16:37 UTC