Re: [svgwg] Bounding box algorithm is not precise

The CSS stroke bounding box algorithm is fairly loose.  It exaggerates the bounds a lot for shapes that use mitred joins.  A mitre limit of 10 is fairly typical (it is the PDF and PS default). So the padding around any shape would be five times the stroke width.

See semo: https://jsfiddle.net/5y8zt05h/18/

I'm not sure that the CSS algorithm would be suitable in the SVG context.

-- 
GitHub Notification of comment by BigBadaboom
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/422#issuecomment-383387332 using your GitHub account

Received on Sunday, 22 April 2018 14:56:24 UTC