Re: [svgwg] Support pathLength via CSS (#773)

I've done some basic testing. The attribute 'pathLength' is supported by Firefox and Chrome, not by Safari and Edge. Inkscape does not support 'pathLength' but it shouldn't be hard to implement.

The attached zip file contains tests of stroke dashing using 'pathLength':
* path_length.svg: Tests basic support on path, rectangle, circle.
* path_length2.svg: Tests support on a very long spiral path consisting of cubic Beziers. Firefox and Chrome differ in the calculation of the path length by about 0.1% (14px out of 11760px). They both agree within 0.2% of my naive calculation of the path length.
* path_length3.svg: A SMIL animation on the spiral path, with and without using 'pathLength'. There is no indication of a problem with computation time.

I see no problems in adding 'path-length' as a CSS property.

[path_length.zip](https://github.com/w3c/svgwg/files/4108982/path_length.zip)


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

Received on Friday, 24 January 2020 15:02:04 UTC