[IC/SVG] Marker rendering bug in Mozilla

Jorge Stolfi <[email protected]>
Newsgroups gmane.comp.mozilla.devel.svg
Message-ID <[email protected]>
Hello, 

I noticed that markers in embedded SVG files are incorrectly rendered by Firefox.
See for example

  http://www.ic.unicamp.br/~stolfi/misc/2009-04-07-svg-marker-bug/buggy-markers.html
  
As the example shows, the SVG file renders correctly when opened
directly (in its own Firefox window). The problem only arises when the SVG is
embedded in a HTML file with <EMBED...>

Apparently the EMBED renderer is using the low corner of the merker's "viewBox" as
the reference pont, instead of the declared "refX" and "refY" attributes.
The problem remains if "refX" and "refY" are omitted: they should default
to 0,0, but the low corner of the "viewBox" is used instead.

Here is my platform:

  Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) 
  Gecko/2009033116 
  Mandriva/1.9.0.8-0.1mdv2009.0 (2009.0) 
  Firefox/3.0.8
  
Firefox's Add-Ons menu says that SVG is handled by RSVG 2.22.3 
  
I have noticed the same marker bug in my version of ImageMagick's
"convert"/"display". ImageMagick's command "identify -list format" says

      SVG  SVG       rw+   Scalable Vector Graphics (RSVG 2.22.2)

Perhaps the EMBED tag is being handled by RSVG 2.22.2, while
standalone SVG files are shown with 2.22.3?

All the best,

--stolfi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.