[svgwg] `getPathSegmentAtLength()`: Define which segment is returned at exact boundary (#1129)

viralipurbey has just created a new issue for https://github.com/w3c/svgwg:

== `getPathSegmentAtLength()`: Define which segment is returned at exact boundary ==
When the distance argument to `getPathSegmentAtLength()` falls exactly on the boundary between two segments, the spec does not define which segment should be returned (the earlier or later one).

**Proposed resolution**: Return the later segment. This is consistent with `getPointAtLength()`, which returns the point belonging to the later segment at a boundary. 

Firefox returns the later segment. Explicitly specifying this removes an interoperability ambiguity.

https://svgwg.org/svg2-draft/paths.html#DOMInterfaces

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/1129 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 10 June 2026 13:36:50 UTC