Re: Rendering of non-uniform scaled diagonal lines
"Tab Atkins Jr." <[email protected]> Sun, 6 Mar 2016 22:29:56 -0800
| Newsgroups | gmane.comp.web.svg |
|---|---|
| Message-ID | <CAAWBYDBhz4BKwz-KXadAX4ytdBej7tbroTkseqMssUd=MOjRXQ@mail.gmail.com> |
On Sun, Mar 6, 2016 at 10:32 AM, Jarek Foksa <[email protected]> wrote: > I can’t find the relevant section in the spec, but I would expect the stroke to be painted first, before applying group transforms, thus making the stroke look like a parallelogram. > > The spec defines <line> and <polyline> as "mathematically equivalent to a <path>”. I don't see any reason why they should be rendered differently than <path>. > > Chrome and the dev version of Inkscape seem to render this graphics correctly, I’m not sure about other apps. Yup, the Chrome rendering (parallelograms when scaled non-uniformly) is correct. Like filters, transforms are a post-painting operation (thus the stretching), and all shapes in SVG are just shorthands for some <path> (thus all the elements acting the same). ~TJ