Visit Mozilla.org

SVG dans Firefox

Un article de MDC.


Vous trouverez des exemples simples de syntaxe et d'utilisation de SVG sur la page W3C SVG test suite.

[modifier] Statut d'implémentation des éléments

Élément Notes
Structure Module
svg
  • Implémenté.
  • Les attributs DOM currentScale et currentTranslate sont implémentés, mais il n'y a pas d'interface utilisateur pour se déplacer et zoomer.
  • SVGSVGElement
    • Attributs non implémentés : contentScriptType, contentStyleType, viewport, useCurrentView, currentView
    • Liaisons non implémentées : pauseAnimations, unpauseAnimations, animationsPaused, getCurrentTime, setCurrentTime, getIntersectionList, getEnclosureList, checkIntersection, checkEnclosure, deselectAll, createSVGAngle (implémenté dans Firefox 2), getElementById
g
  • Implémenté.
defs
  • Implémenté.
desc
  • Implémenté.
  • Uniquement stocké dans le DOM, pas d'interface utilisateur.
title
  • Implémenté.
metadata
  • Implémenté.
  • Uniquement stocké dans le DOM, pas d'interface utilisateur.
symbol
  • Implémenté.
use
  • Implémenté.
  • Fonctionne uniquement pour les références internes au document (bug 269482).
  • Ne suit pas entièrement les règles de cascade <svg:use> (bug 265894).
  • Ne délivre pas les évènements à un arbre SVGElementInstance (bug 265895).
Conditional Processing Module
switch
  • Implémenté.
Image Module
image
  • Implémenté.
  • Fonctionne uniquement pour les images matricielles (bug 272288).
Style Module
style
  • Implémenté.
Shape Module
path
  • Implémenté.
  • SVGPathElement Interface
    • Attributs non implémentés : pathLength, normalizedPathSegList, animatedPathSegList, animatedNormalizedPathSegList
    • Liaisons non implémentées : getTotalLength, getPointAtLength (implémenté dans Firefox 2), getPathSegAtLength
  • SVGPathSegList Interface
    • Liaisons non implémentées : replaceItem()
rect
  • Implémenté.
circle
  • Implémenté.
line
  • Implémenté.
ellipse
  • Implémenté.
polyline
  • Implémenté.
polygon
  • Implémenté.
Text Module
text
  • Implémenté.
  • SVGTextElement
    • Attributs non implémentés : rotate, textLength, lengthAdjust
    • Liaisons non implémentées : getNumberOfChars, getSubStringLength, getStartPositionOfChar, getEndPositionOfChar, getRotationOfChar, getCharNumAtPosition, selectSubString
    • Liaisons non fonctionnelles au cours de onload : getExtentOfChar
tspan
  • Implémenté.
  • SVGTSpanElement
    • Attributs non implémentés : rotate, textLength, lengthAdjust
    • Liaisons non implémentées : getNumberOfChars, getComputedTextLength (implémenté dans Firefox 2), getSubStringLength, getStartPositionOfChar, getEndPositionOfChar, getExtentOfChar, getRotationOfChar, getCharNumAtPosition, selectSubString
tref
  • Non implémenté.
textPath
  • Implémenté dans Firefox 2.
  • Attributs non implémentés : method, spacing, textLength, lengthAdjust
altGlyph
  • Non implémenté.
altGlyphDef
  • Non implémenté.
altGlyphItem
  • Non implémenté.
glyphRef
  • Non implémenté.
Marker Module
marker
  • Implémenté.
Color Profile Module
color-profile
  • Non implémenté.
Gradient Module
linearGradient
  • Implémenté.
radialGradient
  • Implémenté.
stop
  • Implémenté.
Pattern Module
pattern
  • Implémenté dans Firefox 3.
Clip Module
clipPath
  • Implémenté.
  • Ne gère pas les chemins ayant des éléments disposant de propriétés clip-rule différentes ou qui référencent d'autres clipPaths. (bug 267224).
Mask Module
mask
  • Implémenté dans Firefox 3.
Filter Module
filter
  • Implémenté dans Firefox 3.
feBlend
  • Implémenté dans Firefox 3.
feColorMatrix
  • Implémenté dans Firefox 3.
feComponentTransfer
  • Implémenté dans Firefox 3.
feComposite
  • Implémenté dans Firefox 3.
feConvolveMatrix
  • Implémenté dans Firefox 3.
feDiffuseLighting
  • Implémenté dans Firefox 3.
feDisplacementMap
  • Non implémenté.
feFlood
  • Implémenté dans Firefox 3.
feGaussianBlur
  • Implémenté dans Firefox 3.
feImage
  • Non implémenté.
feMerge
  • Implémenté dans Firefox 3.
feMergeNode
  • Implémenté dans Firefox 3.
feMorphology
  • Implémenté dans Firefox 3.
feOffset
  • Implémenté dans Firefox 3.
feSpecularLighting
  • Implémenté dans Firefox 3.
feTile
  • Implémenté dans Firefox 3.
feTurbulence
  • Implémenté dans Firefox 3.
feDistantLight
  • Implémenté dans Firefox 3.
fePointLight
  • Implémenté dans Firefox 3.
feSpotLight
  • Non implémenté.
feFuncR
  • Implémenté dans Firefox 3.
feFuncG
  • Implémenté dans Firefox 3.
feFuncB
  • Implémenté dans Firefox 3.
feFuncA
  • Implémenté dans Firefox 3.
Cursor Module
cursor
  • Non implémenté.
Hyperlinking Module
a
  • Implémenté comme une liaison XBL - l'objet n'est pas du type SVGAElement.
  • Seuls les attributs xlink:href et xlink:show sont implémentés.
  • Pour l'attribut target, voir le bug 300868
View Module
view
  • Non implémenté.
Scripting Module
script
  • Implémenté.
Animation Module
animate
  • Non implémenté.
set
  • Non implémenté.
animateMotion
  • Non implémenté.
animateTransform
  • Non implémenté.
animateColor
  • Non implémenté.
mpath
  • Non implémenté.
Font Module
font
  • Non implémenté.
font-face
  • Non implémenté.
glyph
  • Non implémenté.
missing-glyph
  • Non implémenté.
hkern
  • Non implémenté.
vkern
  • Non implémenté.
font-face-src
  • Non implémenté.
font-face-uri
  • Non implémenté.
font-face-format
  • Non implémenté.
font-face-name
  • Non implémenté.
definition-src
  • Non implémenté.
Extensibility Module
foreignObject
  • Implémenté dans Firefox 3.