adobe-webplatform / Snap.svg

The JavaScript library for modern SVG graphics.
http://snapsvg.io
Apache License 2.0
13.94k stars 1.15k forks source link

Element.asPX returning 0 when size given in ems #21

Open Fyrd opened 10 years ago

Fyrd commented 10 years ago

This test used to pass, so appears to have broken with a fairly recent change.

Test: https://github.com/adobe-webplatform/savage/blob/2a8f553eaf66b5036c4442556333cd6701f5c963/test/element.js#L182

sukrosono commented 6 years ago

This issue is more than a year :older_woman: I cant reproduce the behavior

See the Pen snap 21 by Adi Prasetyo (@enter_rebel) on CodePen.

i am noticed that the catch block always return 0