W3C home > Mailing lists > Public > www-svg@w3.org > May 2005

Strange clipping at (0, 0)

From: thomas mauch <Thomas.Mauch@swisslog.com>
Date: Thu, 26 May 2005 15:34:32 +0200
Message-ID: <24EEAB6B0F6C6C42814AB69E201B34C382DF42@schb7sw3-011.schb7.swisslog.net>
To: <www-svg@w3.org>
Please have a look the following SVG file. It defines two symbols cross1
and cross2 which are then drawn on the canvas. What surprises me is that
the cross1 symbol does not render as cross, but only the parts with x>0
and y>0 are shown, like a clipping would occur even in the middle of the
page where the symbol is drawn. If I add 10 to each coordinate to
circumvent the negative coordinates (which is cross2), it is drawn
allright. This behaviour occurs when rendering with the Adobe and the
Batik viewer.
<?xml version="1.0" encoding="iso-8859-1"?>
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0">
     <symbol id="cross1">
     <line x1="0" y1="-10" x2="0" y2="10" stroke="red" stroke-width="1"
    <line x1="-10" y1="0" x2="10" y2="0" stroke="blue" stroke-width="1"
     <symbol id="cross2">
     <line x1="10" y1="0" x2="10" y2="20" stroke="red" stroke-width="1"
    <line x1="0" y1="10" x2="20" y2="10" stroke="blue" stroke-width="1"
  <use xlink:href="#cross1" transform="translate(50, 50)" />
  <use xlink:href="#cross2" transform="translate(100, 50)" />

As I'm quite new to SVG, I suppose that I just miss a well-known points.
Thanks in advance.


This message may contain legally privileged or confidential 
information and is therefore addressed to the named persons only. 
The recipient should inform the sender and delete this message, 
if he/she is not named as addressee. 
The sender disclaims any and all liability for the integrity 
and punctuality of this message. 
The sender has activated an automatic virus scanning by 
Messagelabs, but does not guarantee the virus free 
transmission of this message.
Received on Friday, 27 May 2005 02:57:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:06 UTC