[whatwg] canvas miterLimit property

Ian Hickson ian at hixie.ch
Thu Sep 20 17:18:45 PDT 2012


On Fri, 21 Sep 2012, Michael Day wrote:
> > 
> > Its trivial to treat numbers 0.0 < q <= 1.0 as 1.0. No need to fail. 
> > Browsers (at least Opera, Safari, Firefox, and Chrome) consistently 
> > follow the spec here.
> 
> Yes, we can clamp it to 1.0 when we generate the PDF, just wanted to 
> point out another inconsistency with SVG, where miter limit values less 
> than 1.0 will be ignored as invalid.

The main thing driving this API is back-compat with canvas 
implementations, not consistency with SVG. :-)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list