Known Bugs

From Svg wiki

Add any bugs in current implementations that you know of here, and any workaround that you know of.

Contents

ASV

REMEMBER: This is not the official Bug page for Adobe...and no guarantee that Adobe will ever look at this page. Therefore make sure to put in a Bug report at Adobe's site: http://www.adobe.com/svg/feedback/bugreport.html

bug name

  • ASV version...
  • type (unsupported feature not mentioned in ...pdf, crash,
  • description
  • example file
  • workaround (how to avoid it...)
  • reporter: who reported it and mail for aditional information (optional)

viewBox bug

version affected: 3.0

type: incorrect implementation

description: using commas in the viewBox attribute makes it being interpreted wrong.

workaround: don't used commas, use spaces


clearInterval bug

version affected: 3.0

type: incorrect implementation

description: setInterval('my_function()', delay) schedules callbacks to my_function() properly, but from within my_function(), the corresponding call to clearInterval() does nothing. An outside event such as a click event may call clearInterval and it seems to succeed, however.

example file: http://www.speakeasy.org/joshw/clearIntervalTest.svg

workaround: Instead of using set/clearInterval, use setTimeout('my_function', delay) and at the end of your animation function if you still have more work to do, call setTimeout again.


No animation events generated by dynamically added animateMotion elements

version affected: 3.0

type: unsupported feature

description: When you add an animateMotion element dynamically with javascript, the element does not generate any of the animation events (onbegin, onrepeat, onend)

example file: http://www.speakeasy.org/joshw/dyn_anim_events_bug.svg

workaround: none?

seems to be fixed in ASV6.1


XML Font selection

version affected: 3.0

type: minor feature broken

description: fonts with _ (undescore) in their names can not be selected using XML, instead default font is selected. Selection with CSS is working correctly.

example file: http://www.rattus.info/fonts/font_test_xml_01.svg

workaround: Use CSS selection of font or a font name without underscore.

reporter: IztokJeras


Event on the object background

version affected: 3.0

type: major feature broken

description: If an mouseup is triggered by an object and the javascript code for the mouseup sets the display property of object to none, then a click event is triggered on object the in the background but it shuld not.

example file: http://www.rattus.info/tests/event_bug.svg

workaround: Try to set the display property of the object on the click event (the last event). But note that if the pointer is moved betwen the mousedown and mouseup, then the click is not triggered.

reporter: IztokJeras


animateTransform - transform matrix multiplication sequence

version affected: 3.0

type: minor feature broken

description: The transform matrix multiplication should be connected to the sequence of the transforms inside the file and not to the sequence in time.

example file: http://www.rattus.info/tests/transfo_svg_test_IzI_01.svg

example file: http://www.rattus.info/tests/transfo_svg_test_IzI_02.svg

workaround:

reporter: IztokJeras


Hyperlink not instanced by the use element

version affected: 3.0

type: minor feature broken

description: If there is a hyperlink (a element) defined for the original it does not function when the original is instanced by an use element.

example file: http://www.rattus.info/tests/instanced_link_bug_01.svg

workaround: Define a new hyperlink (a element) for the instance.

example file: http://www.rattus.info/tests/instanced_link_bug_02.svg

reporter: IztokJeras


printNode Bug

From adobe.svg newsgroup, by Ben Barre:

I repost my message because there was XML inside... I'm facing a problem with printNode.

If I have something like that in the svg : <a xlink:href="apage.asp?param1=avalue&param2=anothervalue" />

printNode gives :

< xlink:href="apage.asp?param1=avalue&param2=anothervalue" />

and that's not a parsable XML string.

Is it a known problem ?


Bounding Box and display:none Bug

version affected: 3.0

type: Minor Feature Broken

description:

The SVG specification says that "The geometry of a graphics element with 'display' set to none is not included in bounding box and clipping paths calculations;" (http://www.w3.org/TR/SVG/painting.html section 11.5)

However, the ASV3.0 includes elements with display:none in bounding box calculations, and doesn't ignore them as it should. Please see the following example, the onload alert should report "100", but actually reports "300".

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE svg
  PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg xmlns:svg="http://www.w3.org/TR/2000/svg-2000303-stylable" xml:space="preserve" onload="alert(document.getElementById('blah').getBBox().height);">
    <g id="blah">

       <rect x="0" y="0" width="250" height="100" style="fill:blue;"/>

       <rect style="fill:red; display:none" width="250" height="100" x="0" y="200" />
    </g>
</svg>

reporter: Andrew King

workaround: none


mac os x menu item bug

ASV doesn't properly escape characters that have meaning when constructing a menu. See http://developer.apple.com/techpubs/macosx/Carbon/HumanInterfaceToolbox/MenuManager/Menu_Manager/menu_mgr_ref/function_group_4.html

The characters are ^;!(/

When used each invokes a special property of the menu item, such as "(" meaning disable the menu item.

If you find a reasonable workaround, please send to alanralanr attbi.com

For now I am substituting "similar" characters : `:|[\\


preserveAspectRatio bug

version affected: 3.0

type: incorrect implementation

description: the default value for 'preserveAspectRatio' on the 'image' element in svg is 'xMidYMid meet', but ASV takes 'none' as the default value. The example below should show a square, not a rectangle.

<svg xmlns="http://www.w3.org/2000/svg"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  viewBox="0 0 10 10">
<image xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAIAAAACUFjqAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1FB9EFBAoYMhVvMQIAAAAtSURBVHicY/z//z8DHoBH+v///yy4FDEyMjIwMDDhM3lgpaEuh7gTEzDiDxYA9HEPDF90e5YAAAAASUVORK5CYII=" 
width="10" height="5"/>
</svg>

workaround: explicitly specify the 'preserveAspectRatio' attribute


Add new bugs!

Opera

The following are a list of known bugs with the SVG Tiny implementation in Opera 8.0x.

Underscores in Identifiers

I have experienced issues where Opera does not allow underscores in identifier names for gradients. Workaround is to rename your identifiers.

No Link Cursor

Opera 8 does not change the cursor to a pointer when over a link element (i.e. the mouse pointer is unchanged). No workaround since Opera 8 also does not support the <cursor> element or scripting.

HTML and CSS Integration

Opera versions prior to 9.5 does not support filetype SVG for HTML:img elements and for CSS background-image URIs.

More Links

See [1] for a more detailed analysis of Opera's implementation.

Detailed documentation on what Opera 9 supports can be found here

Mozilla

This covers bugs in Mozilla's SVG implementation (currently available in Firefox 1.5). This does not explicitly cover missing functionality (which can be seen here).

See this list for a starter.