Firefox 3 中的 SVG 改进

与之前的 Firefox 版本相比,Firefox 3 提供了改进的 可缩放矢量图形 (SVG) 支持。虽然这些功能已在别处记录,但本文档可作为方便的列表,让您可以轻松确定 Firefox 3 中添加了哪些功能。

  • 现在支持 foreignObject 元素(Firefox bug 326966)。

  • 现在支持 pattern 元素。

  • 现在支持 mask 元素。

  • 已添加对所有 SVG 1.1 滤镜的支持

    • filter
    • feDistantLight
    • fePointLight
    • feSpotLight
    • feBlend
    • feColorMatrix
    • feConvolveMatrix
    • feComponentTransfer, feFuncR, feFuncG, feFuncB, feFuncA
    • feComposite
    • feConvolveMatrix
    • feDiffuseLighting
    • feDisplacementMap
    • feDistantLight
    • feFlood
    • feGaussianBlur
    • feImage
    • feMerge, feMergeNode
    • feMorphology
    • feOffset
    • fePointLight
    • feSpecularLighting
    • feTurbulence
    • feTile
  • SVG 中 <a> 元素的处理已修复多个 bug;请参阅 Firefox bug 267664WebKit bug 268135WebKit bug 316248WebKit bug 317270WebKit bug 320724

  • 已实现 SVG DOM 方法 getNumberOfChars()getComputedTextLength()getSubStringLength()getStartPositionOfChar()getEndPositionOfChar()getRotationOfChar()getCharNumAtPosition()

  • 现在支持 xml:space 属性。

  • 现在支持回退 fill/stroke

  • 现在支持 emex 单位来指示长度(Firefox bug 305859)。

另见