High numbers in SVG makes the element disappear -


if put big number coordinate svg elements, these elements doesn't show up.

.line {    stroke-dasharray: 10, 5;    fill: none;    stroke: #ff6600;    stroke-width: 1;  }
<body>      <svg height="500" width="800">          <polyline class="line" points="0,300 16000000,300"></polyline>      </svg>  </body>

http://codepen.io/anon/pen/jojbkq

if change 16,000,000 coordinate in polyline smaller (15m) shows up. see problem in chrome, appears in browsers in of them (firefox) higher numbers. crashes browser high-enough numbers(firefox).

when remove stroke-dasharray attribute element, problem @ 3 orders of magnitude higher numbers.

you may ask why need such big numbers there. have zoomable scene , reasonable coordinates reaches limit pretty once zoom in deep enough.

does know kind of workaround? thanks


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -