Problem with large coordinates?

praveen <[email protected]> Tue, 16 Feb 2010 12:53:06 -0800 (PST)
Newsgroups gmane.comp.mozilla.devel.svg
Organization http://groups.google.com
Message-ID <9d7126e9-c6a3-4a43-9d19-f74570587a59@o16g2000prh.googlegroups.com>
Hi there,

I have an XHTML page that has embedded SVG elements. In the sample
attached below, I'm adding two paths with the following coordinates:

M -21333,2086 512,265 -15872,5985

M -43179,3916 512,274 -32256,11715

The first one is rendered fine but the second one is not (tried it in
Firefox 3.5.7). I understand that this has something to do with
coordinates out of supported range.

I would like to better understand what exactly the limit is. Is it the
just the value of the x/y coordinates or something more than that?
What is the supported range of the coordinates?

Thanks,
Praveen


=================
Attachment: svg.xhtml
=================

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:svg="http://www.w3.org/2000/svg"
      xmlns:xlink="http://www.w3.org/1999/xlink">
  <head>
    <title>SVG embedded inline in XHTML</title>
  </head>

  <body>
    <h1>SVG embedded inline in XHTML</h1>

    <svg:svg version="1.1" width="1024px" height="756px">
      <!-- This path is okay -->
      <svg:path
          fill="none" fill-opacity="0"
          stroke="rgb(255, 0, 0)" stroke-opacity="1" stroke-width="1"
          d="M -21333,2086 512,265 -15872,5985"/>

      <!-- This is not rendered properly -->
      <svg:path
          fill="none" fill-opacity="0"
          stroke="rgb(255, 0, 0)" stroke-opacity="1" stroke-width="1"
          d="M -43179,3916 512,274 -32256,11715"/>
    </svg:svg>

  </body>
</html>