I have no idea if it works well, but the SVG spec has a .getTotalLength() method for path elements, which should mean it&#x27;s possible to calculate the total length in a browser quite easily. A decent JavaScript developer should be able to prove whether it works well or not in an hour or two.