Closed Bug 1242275 Opened 8 years ago Closed 5 years ago

SVG Viewbox not working with large values

Categories

(Core :: SVG, defect)

43 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1544413

People

(Reporter: git, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:43.0) Gecko/20100101 Firefox/43.0
Build ID: 20160105164030

Steps to reproduce:

Create an SVG tag containing 1 path element, and large x values.

The issue explained in code:
http://plnkr.co/edit/fNokZ74yX21z2o6wSjtK?p=preview



Actual results:

The SVG is blank (the path isn't shown)


Expected results:

The SVG should be shown.

There are other differences when scaling SVG viewboxes and path data in Firefox.  A live version can be seen: http://plnkr.co/edit/aXaSK7flJEAo7YletUCh?p=preview

In Firefox, when changing the xMin range slider, you will notice the path "wobbles".  At a certain point, the path completely disappears.  In Chrome, the path doesn't wobble when changing the slider, and the path never disappears.
One thing to notice, this issue popped up for me when showing waveform data.  I *can* work around it by normalizing all my values between 0 and 1, but it would be nice to use the actual data values w/o normalizing.
Component: Untriaged → SVG
Product: Firefox → Core
See Also: → 1314265
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.