Closed Bug 1044449 Opened 10 years ago Closed 7 years ago

SVG path getTotalLength and getPointAtLength gives wrong values (with and without hardware acceleration)

Categories

(Core :: SVG, defect)

31 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: kowik1984, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0 (Beta/Release) Build ID: 20140716183446 Steps to reproduce: Open this site: http://kovacsv.hu/errors/pointsonpath2.html Actual results: The red dots not follow the path, and the total length value is incorrect. Expected results: The points should be on the path (as in Chrome 36 and Internet Explorer 11). The path total length should be near 129.
This bug was separated from this: https://bugzilla.mozilla.org/show_bug.cgi?id=1044372 The original bug occurs only when hardware acceleration is on, but this appears with and without HWA. Although the result is dependent on HWA settings, the result is wrong in both cases.
Component: Untriaged → SVG
Product: Firefox → Core
Status: UNCONFIRMED → NEW
Ever confirmed: true
I am seeing this in as well on OSX 10.10.5. Have confirmed following versions as affected: 43.0a1 40.0.3 43.0a1 nightly A demonstration of the problem I am running into: http://jsfiddle.net/xfpDA/5/ In my case, it appears that the Bezier curve command at the end of the path is ignored completely, and the path is just closed instead.
Result matches IE and Chrome in Ubuntu 15.10 with Nightly with the patch from bug 1134549 applied, which was recently pushed in https://hg.mozilla.org/mozilla-central/rev/3e73fc0dfb01
Status: NEW → RESOLVED
Closed: 7 years ago
Depends on: 999943
Resolution: --- → FIXED
Depends on: 1134549
No longer depends on: 999943
You need to log in before you can comment on or make changes to this bug.