W3C SVG 1.1 Test Suite

This section contains a set of examples from the SVG 1.1 test suite. These examples are provided here to give an indication of the current status of the svg2js implementation.

You need to use Firefox 3.1 beta to get the best viewing results. Earlier versions such as Firefox 3.0 will not show the text. The example pages include a link to a .png image created using Firefox 3.1 beta.

Some examples show differences between the <canvas> image and the W3C reference image. Some of the differences and causes are as follows:

svg2js version 0.1 was used to generate the javascript files using the following command-line:

svg2js --dsize 480x360 <svg file> <js file>

The default image dimensions are set to 480x360 so that the resulting image matches the reference image as closely as possible.

Not all examples provided in the test suite have been included in the list. The following were omitted because they are currently outside the scope of svg2js:

The following examples were omitted because they test features not yet implemented:

styling-css-04-f.svg was modified to resolve a CSS syntax error caused by a '(' at the end of the <style> element content.

struct-use-05-b.svg referenced an external SVG document svgRef1.svg which did not declare the SVG namespace. The SVG namespace declaration was added to the document.

Get svg2js at SourceForge.net. Fast, secure and Free Open Source software downloads Valid XHTML 1.0 Strict