SVG 2 support in Mozilla - SVG: Scalable Vector Graphics 编辑

Draft

This page is not complete.

SVG 2 is the next major version of the SVG standard, which is a complete rework of the SVG 1.2 draft.

Version 2 contains a lot of changes regarding the last stable version SVG 1.1. Those changes are listed below including their support status within Mozilla applications.

General

ChangeNotes
length attribute and indexed property for list interfacesImplementation status unknown
<script> element in content model of all elementsImplementation status unknown
initialize(), appendItem(), replaceItem(), and insertItemBefore() on list objects making a copy of any list item being inserted that is already in another listImplementation status unknown
crossorigin attribute for <image> and <script> elementsNot implemented yet (at least for <image>; bug 1240357)

Rendering Model

ChangeNotes
SVG root and <foreignObject> not overflow:hidden in UA style sheetImplementation status unknown
Allow overflow: auto; to clip and show scroll barsImplementation status unknown
Allow overflow: scroll; to show scroll bars on <svg> elementsImplementation status unknown

Basic Data Types and Interfaces

ChangeNotes
DOMMatrix or DOMMatrixReadOnly instead of SVGMatrixImplementation status unknown
DOMRect or DOMRectReadOnly instead of SVGRectImplementation status unknown
DOMPoint or DOMPointReadOnly instead of SVGPointImplementation status unknown
Members of SVGStylable and SVGLangSpace available in SVGElementImplementation status unknown
SVGGraphicsElement instead of SVGLocatable and SVGTransformableImplementation status unknown
SVGGeometryElement with SVGGeometryElement.isPointInFill() and SVGGeometryElement.isPointInStroke() methodsPartially implemented (bug 1239100). The methods
isPointInFill() and isPointInStroke() are not implemented yet (bug 1325319).
SVGExternalResourcesRequired removedNever implemented
SVGElement.viewportElement and SVGElement.ownerSVGElement nullableImplementation status unknown
SVGElement.getPresentationAttribute() removedNever implemented (prototype removed in bug 921456)
SVGColor and SVGICCColor removedNever implemented
SVGElement.focus(), SVGElement.blur()Not implemented (bug 778654)
SVGElement.tabIndexImplemented (bug 778654)
Document.activeElementImplementation status unknown
GlobalEventHandlers on SVGElementImplementation status unknown
options dictionary attribute for SVGGraphicsElement.getBBox()Implemented behind the preference svg.new-getBBox.enabled (bug 999964, bug 1019326)
Allow leading and trailing whitespace in <length>, <angle>, <number> and <integer>Implementation status unknown
Form feed (U+000C) in whitespaceImplementation status unknown
SVGElement.xmlbase, SVGElement.xmllang and SVGElement.xmlspace removedImplementation status unknown
SVGViewSpec removedImplementation status unknown
SVGElement.style removedImplementation status unknown
SVGGraphicsElement.getTransformToElement() removedNot removed yet
SVGGraphicsElement.getCTM() on the outermost elementImplementation status unknown
animVal attribute alias of baseValImplementation status unknown
dataset attribute for SVGElementImplementation status unknown
Moved pathLength attribute and getTotalLength() and getPointAtLength() methods from SVGPathElement to SVGGeometryElementImplemented (bug 1239100)

Document Structure

ChangeNotes
SVGSVGElement.suspendRedraw(), SVGSVGElement.unsuspendRedraw(), and SVGSVGElement.unsuspendRedrawAll() deprecatedTurned into no-ops (bug 734079)
externalResourcesRequired attribute removedImplementation status unknown
auto value for width and height in <image>Implementation status unknown
referencing entire document with <use>Implementation status unknown
lang attribute on <desc> and <title>Implemented (bug 721920)
CSS transforms on outermost <svg> not affecting SVGSVGElement.currentScale or SVGSVGElement.currentTranslateImplementation status unknown
rootElement attribute deprecatedImplementation status unknown
SVGElementInstance and SVGElementInstanceList and corresponding attributes on SVGUseElement removedImplementation status unknown
<use> event flow following Shadow DOM spec.Implementation status unknown
auto as initial value for width and height attributes of <svg>Implementation status unknown
baseProfile and version attributes removed from <svg>Implementation status unknown
SVGSVGElement.forceRedraw() deprecatedTurned into a no-op (bug 733764)
SVGSVGElement.deselectAll() deprecatedNot yet deprecated (bug 1302705)
<switch> not affecting <style>Implementation status unknown
requiredFeatures attribute removedImplementation status unknown
SVGSVGElement.currentView and SVGSVGElement.useCurrentView removedSVGSVGElement.currentView was never implemented, SVGSVGElement.useCurrentView not removed yet (bug 1174097)
SVGUnknownElementNot implemented (bug 1239218)
lang attribute without namespaceImplemented (bug 721920)
SVGSVGElement.viewport removedNever implemented
xml:base attribute removedImplementation status unknown
Reorder descendent elements of <switch> having systemLanguage attribute according to allowReorder SMIL attributeImplementation status unknown
Made <tspan> and <textPath> graphics elementsImplementation status unknown
Allow x, y, width, and height on <symbol>Implementation status unknown
Made <use> element shadow trees consistent with Shadow DOM specImplementation status unknown
Role mapping of <a> element depending on whether it is a valid linkImplementation status unknown
ARIA state and property attributes animatableImplementation status unknown

Styling

ChangeNotes
contentStyleType attribute removedImplementation status unknown
LinkStyle on SVGStyleElementImplemented (bug 1239128 (Firefox 46.0 / Thunderbird 46.0 / SeaMonkey 2.43))
Inner <svg>s and <foreignObjects>s not overflow: hidden; in UA style sheetImplementation status unknown
overflow: hidden; on <hatch> in UA style sheetImplementation status unknown
0 0 as default value of transform-origin except root <svg> and <svg> children of <foreign>Implementation status unknown
Use of white-space instead of deprecated xml:space attribute in UA style sheetImplementation status unknown
@font-face, ::first-letter and ::first-line on <text>Implementation status unknown
SVG and HTML style sheets in HTML document with inline SVG applying to whole document contentImplementation status unknown
Presentation attributes on any SVG namespaced elementImplementation status unknown
Display behavior of <style> defined via UA style sheetImplementation status unknown
!important user agent style rules controlling never-rendered elementsImplementation status unknown
:focus and ::selection stylesImplementation status unknown

Geometry

ChangeNotes
x and y attributes removed from <pattern> and <filter>Implementation status unknown
auto value of width and height computes to 0 but 100% on <svg>Not implemented

Coordinate Systems, Transformations and Units

ChangeNotes
Exception for bad values on SVGMatrix.skewX() and SVGMatrix.skewY()Implementation status unknown
Bounding box for element with no position at (0, 0)Implementation status unknown
defer keyword removed from preserveAspectRatio attributeRemoved (bug 1280425)
Added non-scaling-size, non-rotation and fixed-position keywords for vector-effect propertyNot implemented yet (bug 1303567)
vector-effect has no effect within 3D rendering contextImplementation status unknown
Consider clip and overflow on SVG document referenced by <image>Implementation status unknown

Paths

ChangeNotes
B and b path commandsImplementation status unknown
Z and z path commands to add path coordinate data to previous commandImplementation status unknown
Not render <path>, <polygon> and <polyline> with no dataImplementation status unknown
SVGPathSeg*, SVGAnimatedPathData and related methods removed from SVGPathElementImplementation status unknown
d attribute as CSS propertyImplementation status unknown

Basic Shapes

ChangeNotes
pathLength attribute for all basic shapesImplementation status unknown
SVGAnimatedPoints.animatedPoints as alias of SVGAnimatedPoints.pointsImplementation status unknown
Auto behavior for rx and ry in <ellipse>Implementation status unknown

Text

ChangeNotes
text-decoration-fill and text-decoration-stroke propertiesNot implemented yet (bug 1303569)
inline-size attribute for <text>Implementation status unknown
shape-inside propertyInplementation status unknown
shape-subtract propertyInplementation status unknown
white-spaceImplementation status unknown
Deprecated xml:space attributeImplementation status unknown
kerning property removedImplementation status unknown
path attribute for <textPath>Implemented (bug 1446617)
Reference basic shapes to <textPath>Implementation status unknown
side attribute for <textPath>Implemented (bug 1446650)
Render characters for one loop of a single closed path, effected by the startOffset attribute and text-anchor propertyImplementation status unknown
<tref> removedImplementation status unknown
<altGlyph>, <altGlyphDef>, <altGlyphItem> and <glyphRef> removed<altGlyph>, <altGlyphDef> and <altGlyphItem> removed (bug 1260032), <glyphRef> never really implemented (bug 1302693)
SVGTextContentElement.selectSubString() deprecatedImplementation status unknown
getComputedTextLength() not including dx and dy valuesImplementation status unknown
Text in non-rendered elements not included in addressable charactersImplementation status unknown
Unknown elements in text render as unpositioned spansImplementation status unknown
Offset distances of text positioned along a transformed path measured in text elements coordinate systemImplementation status unknown

Embedded Content

ChangeNotes
<video>Implementation status unknown
<audio>Implementation status unknown
<iframe>Implementation status unknown
<canvas>Implementation status unknown
<source>Implementation status unknown
<track>Implementation status unknown

Painting

ChangeNotes
paint-orderImplemented (bug 828805)
will-change instead of buffered-renderingImplementation status unknown
context-fill and context-stroke paint valuesImplemented (bug 719286 (Firefox 18.0 / Thunderbird 18.0 / SeaMonkey 2.15) and bug 798843 (Firefox 26.0 / Thunderbird 26.0 / SeaMonkey 2.23))
child keyword for <paint> values and marker propertiesImplementation status unknown
vector-effect propertyOnly none and non-scaling-stroke values are supported (bug 528332 (Firefox 15 / Thunderbird 15 / SeaMonkey 2.12), bug 1265666)
arcs value for stroke-linejoinNot implemented (bug 1239142)
auto-start-reverse value for <marker>'s orient attributeImplemented (bug 879659)
SVGPaint removedImplementation status unknown
fill and stroke taking multiple paintsImplementation status unknown
z-indexNot implemented (bug 360148
child(<integer>) paint valueImplementation status unknown
Display of zero-length subpaths depends on stroke-linecap attributeImplementation status unknown
Markers on all shapesImplementation status unknown
<marker> element display defined in UA style sheetImplementation status unknown
Only single paints for fills and strokesImplementation status unknown

Color

ChangeNotes
Color managed imagesImplementation status unknown
RGBA, HSL, LAB, ICC named colors and device colorsImplementation status unknown
color-profile removedImplementation status unknown
<color-profile> removedImplementation status unknown

Paint Servers

ChangeNotes
<solidcolor> (renamed solidColor)Not implemented (bug 1177032)
fr attribute for <radialGradient>Not implemented (bug 1240275)
<mesh> (renamed meshGradient)Not implemented (bug 1238882)
<meshrow> (renamed meshRow)Not implemented (bug 1238882)
<meshpatch> (renamed meshPatch)Not implemented (bug 1238882)
<hatch>Not implemented (bug 1239147)
<hatchpath> (renamed hatchPath)Not implemented (bug 1239147)
Display behavior of paint server elements defined by UA style sheetNot implemented

Clipping, Masking, and Compositing

ChangeNotes
overflow respected on outermost <svg> elements inline in HTMLImplementation status unknown

Interactivity

ChangeNotes
tabindex attributeImplemented (bug 778654)
bounding-box on pointer-eventsNot implemented (bug 945187)
load, abort, error, and unload instead of SVGLoad, SVGAbort, SVGError, and SVGUnloadNot implemented (bug 620002)
Only structurally external elements and outermost <svg> element fire load eventsImplementation status unknown
resize and scroll instead of SVGResize and SVGScrollImplementation status unknown
DOMActivate removedImplementation status unknown
focusin and focusout instead of DOMFocusIn and DOMFocusOutImplementation status unknown
Keyboard eventsImplementation status unknown
Mutation events removedImplementation status unknown
SVGZoomEvent removedImplementation status unknown
<cursor> element deprecatedImplementation status unknown

Linking

ChangeNotes
Link SVG resources with fragment identifiersImplementation status unknown
xlink:type, xlink:role, xlink:arcrole, xlink:show, and xlink:actuate attributes removedImplementation status unknown
xlink:href attribute deprecated in favor of hrefImplemented (bug 1245751)
xlink:title attribute deprecated in favor of child <title>Implementation status unknown
Spaces in SVG view fragmentsImplementation status unknown
pixel: and percent: spatial media fragmentsImplementation status unknown
Linking to <view> elements does not cause implicit box transformation to show nearest ancestor <svg> elementImplementation status unknown
Unspecified SVG view fragment parameters don't cause corresponding attributes to be reset to initial valuesImplementation status unknown
viewTarget attribute of <view> and corresponding SVG view fragment parameter removedImplementation status unknown
Fragment-only URLs are always same-documentImplementation status unknown
Additional attributes on <a>Implemented (bug 1451823)

Scripting

ChangeNotes
contentScriptType removedImplementation status unknown
AnimationEvents.onload removedImplementation status unknown

Fonts

ChangeNotes
<font>, <glyph>, <missing-glyph>, <hkern>, <vkern>, <font-face>, <font-face-src>, <font-face-uri>, <font-face-format>, and <font-face-name> and corresponding IDL interfaces removedImplementation status unknown

Extensibility chapter

ChangeNotes
Made <foreignObject> graphics elementImplementation status unknown

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:79 次

字数:52864

最后编辑:8年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文