Firefox truncates symbols with negative coordinates, Inkscape not

Asked by Rainer Glaschick

If a symbol contains negaive coordinates, Firefox truncates to zero, inkscape not.
My questions:
a) are negative values allowed
b) if yes, does Inkscape show correct and Firefox not?
(in the latter case, I would file the problem for Firefox)

Here is the example:

<defs><symbol id="battery">
<line x1="-32" y1="36" x2="32" y2="36" stroke="black" stroke-width="2" />
<line x1="-32" y1="60" x2="32" y2="60" stroke="black" stroke-width="2" />
<line x1="0" y1="96" x2="0" y2="76" stroke="black" stroke-width="2" />
<line x1="0" y1="16" x2="0" y2="36" stroke="black" stroke-width="2" />
<line x1="-20" y1="24" x2="-12" y2="24" stroke="black" stroke-width="2" />
<line x1="-16" y1="20" x2="-16" y2="28" stroke="black" stroke-width="2" />
<polygon stroke="black" stroke-width="2" fill="lightgray" points="-16,44 -16,52 16,52 16,44" />
<polygon stroke="black" stroke-width="2" fill="lightgray" points="-16,68 -16,76 16,76 16,68" />
</symbol></defs>
<g transform="translate(256,96)">
<use xlink:href="#battery" />
</g>

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
Rainer Glaschick
Solved:
Last query:
Last reply:
Revision history for this message
mahfiaz (mahfiaz) said :
#1

As you can see from the spec: http://www.w3.org/TR/SVG/shapes.html#PointsBNF
the use of sign (either + or -) is allowed so file this as bug to firefox instead.

Revision history for this message
Rainer Glaschick (rainer-glaschick-pb) said :
#2

I filed the bug for firefox, and got the reply (https://bugzilla.mozilla.org/show_bug.cgi?id=469877) that the symbol-tag has to specify style="overflow:visible" (or to define a viewport). With this added, it worked with firefox.

Don't know if this has any consequences for Inkscape, as the original file was imported into Inkscape and not created there.