- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Mon, 3 Jun 2013 23:09:27 -0700
- To: Paul LeBeau <paul.lebeau@gmail.com>
- Cc: www-svg <www-svg@w3.org>
On Mon, Jun 3, 2013 at 8:47 PM, Paul LeBeau <paul.lebeau@gmail.com> wrote: > > Thanks for the update Tab > > > We've rejected > > the suggestion that start/end markers should be applied per subpath, > > because it seems likely to be too inconsistent with existing content > > I appreciate the desire for backwards compatibility. I expected that this was likely going to the most controversial proposal. > > I still think it is a reasonable suggestion, but I suspect any arguments for it will have to be based on emotion. I'm not sure if any real survey of marker use is possible unless someone like the Chrome or Firefox teams volunteer to put in some metering. I would be open to suggestions on how to otherwise conduct a survey on marker usage. Given the number of rendering bugs I have found, and that few people seem to have noticed, my sense is that usage of markers is at a level of rarity that it would have little impact if the semantics changed. Yeah, I'm not sure what would be convincing. :/ > If we put aside the compatibility argument for a moment and consider what would a user expect to happen. Imagine a path with a sequence of line segments. An author might first try a dash pattern and discover that line caps aren't applied to dash patterns. The author might then try the following approach: > > <path d="M 0 0 L 100 0 M 200 0 L 300 0 M 400 0 L 500 0 M 600 0 L 700 0 ..." /> > > I think that an average person would expect an end marker to apply to each of those four segments. Having to define an extra mid marker or break it into four path elements seems less obvious I would think. > > Of course the counter argument would be if the user wanted to have one single path end marker, there would be no way to do it under my scheme. > > > > circle/ellipse start at the rightmost point and make 4 quarter-arcs going clockwise > > Given this, were path arcs brought up in the recent discussions? If markers are added to ellipses, then would users then expect arcs > 90 degrees to also have markers? Nah, I don't think so. We need to divide ellipses into at least two arcs, as you can't make a single full circle with a single arc command, and we decided that splitting it into 4 is both nicely symmetric and maximally stable. (It also happens to be how Inkscape decomposes ellipses into paths.) > As an aside, I have noticed that Chrome/Webkit has a bug in the placement of markers on paths with arcs (see below image from my test suite). It appears that Chrome does marker placement *after* decomposing the arc (into beziers I am guessing). The result is that markers are incorrectly applied to the midpoint of arcs. We have so, so many bugs with markers. ~TJ
Received on Tuesday, 4 June 2013 06:10:18 UTC