Visit Mozilla.org

SVG in Firefox

From MDC

You can find some basic examples of SVG syntax and usage in the W3C SVG test suite.

[edit] Element implementation status

Element Notes
Structure Module
svg
  • Implemented.
  • currentScale andcurrentTranslate DOM attributes are implemented, but there is no pan and zoom user interface.
  • SVGSVGElement
    • Unimplemented attributes: contentScriptType, contentStyleType, viewport, useCurrentView, currentView
    • Unimplemented bindings: pauseAnimations, unpauseAnimations, animationsPaused, getCurrentTime, setCurrentTime, getIntersectionList, getEnclosureList, checkIntersection, checkEnclosure, deselectAll, createSVGAngle(implemented in Firefox 2), getElementById
g
  • Implemented.
defs
  • Implemented.
desc
  • Implemented.
  • Only stored in the DOM, no user interface.
title
  • Implemented.
metadata
  • Implemented.
  • Only stored in the DOM, no user interface.
symbol
  • Implemented.
use
  • Implemented.
  • Only works for internal document references (bug 269482).
  • Doesn't completely follow <svg:use> cascading rules (bug 265894).
  • Doesn't deliver events to a SVGElementInstance tree (bug 265895).
Conditional Processing Module
switch
  • Implemented.
Image Module
image
  • Implemented.
  • Only works for raster images (bug 272288).
Style Module
style
  • Implemented.
Shape Module
path
  • Implemented.
  • SVGPathElement Interface
    • Unimplemented attributes: pathLength, normalizedPathSegList, animatedPathSegList, animatedNormalizedPathSegList
    • Unimplemented bindings: getTotalLength, getPointAtLength(implemented in Firefox 2), getPathSegAtLength
  • SVGPathSegList Interface
    • Unimplemented bindings: replaceItem()
rect
  • Implemented.
circle
  • Implemented.
line
  • Implemented.
ellipse
  • Implemented.
polyline
  • Implemented.
polygon
  • Implemented.
Text Module
text
  • Implemented.
  • SVGTextElement
    • Unimplemented attributes: rotate, textLength, lengthAdjust
    • Unimplemented bindings: getNumberOfChars, getSubStringLength, getStartPositionOfChar, getEndPositionOfChar, getRotationOfChar, getCharNumAtPosition, selectSubString
    • Bindings not functional atonload time: getExtentOfChar
tspan
  • Implemented.
  • SVGTSpanElement
    • Unimplemented attributes: rotate, textLength, lengthAdjust
    • Unimplemented unit identifier: em (for use in attributes dx, dy) (bug 305859)
    • Unimplemented bindings: getNumberOfChars, getComputedTextLength(implemented in Firefox 2), getSubStringLength, getStartPositionOfChar, getEndPositionOfChar, getExtentOfChar, getRotationOfChar, getCharNumAtPosition, selectSubString
tref
  • Not implemented.
textPath
  • Implemented in Firefox 2.
  • Unimplemented attributes: method, spacing, textLength, lengthAdjust
altGlyph
  • Not implemented.
altGlyphDef
  • Not implemented.
altGlyphItem
  • Not implemented.
glyphRef
  • Not implemented.
Marker Module
marker
  • Implemented.
Color Profile Module
color-profile
  • Not implemented.
Gradient Module
linearGradient
  • Implemented.
radialGradient
  • Implemented.
stop
  • Implemented.
Pattern Module
pattern
  • Implemented in Firefox 3.
Clip Module
clipPath
  • Implemented.
  • Won't handle clip paths with have elements with different clip-rule properties or that reference other clipPaths. (bug 267224).
Mask Module
mask
  • Implemented in Firefox 3.
  • Mask rendering fails on MacOSX (bug 407350)
Filter Module
filter
  • Implemented in Firefox 3.
feBlend
  • Implemented in Firefox 3.
feColorMatrix
  • Implemented in Firefox 3.
feComponentTransfer
  • Implemented in Firefox 3.
feComposite
  • Implemented in Firefox 3.
feConvolveMatrix
  • Implemented in Firefox 3.
feDiffuseLighting
  • Implemented in Firefox 3.
feDisplacementMap
  • Not implemented.
feFlood
  • Implemented in Firefox 3.
feGaussianBlur
  • Implemented in Firefox 3.
feImage
  • Not implemented.
feMerge
  • Implemented in Firefox 3.
feMergeNode
  • Implemented in Firefox 3.
feMorphology
  • Implemented in Firefox 3.
feOffset
  • Implemented in Firefox 3.
feSpecularLighting
  • Implemented in Firefox 3.
feTile
  • Implemented in Firefox 3.
feTurbulence
  • Implemented in FIrefox 3.
feDistantLight
  • Implemented in Firefox 3.
fePointLight
  • Implemented in Firefox 3.
feSpotLight
  • Not implemented.
feFuncR
  • Implemented in Firefox 3.
feFuncG
  • Implemented in Firefox 3.
feFuncB
  • Implemented in Firefox 3.
feFuncA
  • Implemented in Firefox 3.
Cursor Module
cursor
  • Not implemented.
Hyperlinking Module
a
  • Implemented as an XBL binding - object is not of type SVGAElement.
  • Onlyxlink:href,xlink:show, andxlink:target (as of Firefox 2) attributes implemented.
View Module
view
  • Not implemented.
Scripting Module
script
  • Implemented.
Animation Module
animate
  • Not implemented.
set
  • Not implemented.
animateMotion
  • Not implemented.
animateTransform
  • Not implemented.
animateColor
  • Not implemented.
mpath
  • Not implemented.
Font Module
font
  • Not implemented.
font-face
  • Not implemented.
glyph
  • Not implemented.
missing-glyph
  • Not implemented.
hkern
  • Not implemented.
vkern
  • Not implemented.
font-face-src
  • Not implemented.
font-face-uri
  • Not implemented.
font-face-format
  • Not implemented.
font-face-name
  • Not implemented.
definition-src
  • Not implemented.
Extensibility Module
foreignObject
  • Implemented in Firefox 3.