Re: [svgwg] SVGElement.getBoundingClientRect(): which bounding box?

Thanks for the tests Philip.

But the results I'm getting for Edge and Firefox aren't as neat and simple as "decorated bounding box" for the shapes with markers.  They're both including a lot of space beyond the dimensions added by the visible markers (but they're not consistent with each other, either).  The Firefox calculation seems to be based on the stroke-width you put on the circles in the markers (even though the context-stroke keyword isn't recognized and the markers have hidden overflow).  Which... might actually match the bounding-box algorithm, now that I think of it.   I'm really not sure what Edge is doing to calculate it's numbers.

Anyway, I'd still argue for decorated-box as being the most useful.

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

Received on Thursday, 3 August 2017 21:10:59 UTC