Changes from SVG 1.1
This appendix is informative, not normative.
This appendix summarizes the changes that have been made since the
SVG 1.1 Second Edition Recommendation.
Changes made since the last SVG 2 Working Draft are highlighted.
Editorial changes
A number of stylistic changes have been made to the specification to make it more readable. These include the following:
- A change towards using styling similar to contemporary CSS specifications.
- Annotations have been added to the specification to reflect features that the Working Group
has resolved on including and for which a member of the group has committed to drive that feature.
- Define comma-wsp and wsp in the types chapter and reference these from all other grammars that need it.
Substantial changes
In additional to the editorial changes listed above, the following substantial additions, changes and removals
have been made.
Across the whole document
- References to the SVG DTD have been removed.
- IDL has been updated to use Web IDL syntax.
- Added "length" attribute and indexed property access to all list interfaces.
- Remove definition of <angle> type and reference CSS3-values.
- Change all coordinate types to <length> in preparation for referencing css3-values..
- Add the 'script' element to the content model of all elements.
- Changed the initialize, appendItem, replaceItem and insertItemBefore methods
on list objects to make a copy of any list item being inserted that is already
in another list.
Rendering Model chapter
Basic Data Types and Interfaces chapter
Document Structure chapter
- Deprecated the
suspendRedraw
, unsuspendRedraw
and unsuspendRedrawAll
methods in the SVGSVGElement interface.
- Removed the 'externalResourcesRequired' attribute.
- Added the 'discard' element and the 'timelineBegin' and 'playbackOrder' attributes on the 'svg' element, as defined in SVG Tiny 1.2.
- Added the ability to use 'auto' for the 'image/width' and 'image/height' attributes on 'image'.
- Lifted the restriction on 'use' not being able to reference an entire document.
- Added 'lang' attribute on 'desc' and 'title' elements.
- Added section on WAI-ARIA attributes.
- Clarified that CSS transforms on an outermost svg element do not affect currentScale or currentTranslate. Defined the returned values on 'svg' elements that are not outermost svg element.
- Deprecated the rootElement attribute.
- Defined event handler content attributes and IDL attributes on the root 'svg' element to be for events fired at the Window, like HTML's event handler content attributes and IDL attribute on
body
.
- Moved the 'image' element to the Embedded Content chapter.
- Removed the
SVGElementInstance
and SVGElementInstanceList
interfaces, and the corresponding attributes on the SVGUseElement interface.
- Changed the 'use' element event flow to follow the Shadow DOM spec.
- Clarified that the 'switch' element does not affect processing of 'script' elements.
- Made the 'svg/width' and 'svg/height' attributes on the 'svg' element presentation attributes, and changed the lacuna value to
auto.
- Removed the baseProfile and version attributes from the 'svg' element.
Styling chapter
Coordinate Systems, Transformations and Units chapter
- Added constructors to SVGPoint, SVGMatrix and SVGTransform.
- Make SVGMatrix.skew{X,Y} throw an exception on bad values.
- Added improved wording on bounding box
from SVG Tiny 1.2, and an algorithm which can compute a bounding box for an element.
- Define bounding box for element with no position to be at (0,0).
Paths chapter
- Added new B and
b "bearing" path commands.
- Added new R and r Catmull-Rom curve commands.
- Define 'path', 'polygon' and 'polyline' elements with no data set (empty or zero valid commands) to not render.
- Define how getPathSegAtLength and
getPointAtLength handle out-of-range input, and what to do in case there's no valid path data.
Text chapter
Embedded Content chapter
Painting chapter
Color chapter
- Added requirements for images to be color managed.
- Added new color syntaxes from the SVG Color specification: RGBA colors, HSL colors,
LAB colors, ICC named colors and device colors.
- Removed the 'color-profile' property.
- Removed the 'color-profile' element.
Paint Servers chapter
Clipping, Masking and Compositing chapter
- SVG now references CSS Masking [CSS-MASKING] specification.
- Removed definition of clipping/masking properties and elements.
- Keep short introduction to clipping/masking and add reference to CSS Masking
- Added reference to Compositing and Blending spec. Simple alpha compositing it mandatory.
- The 'overflow' property should be respected on the outermost svg elements inline in html.
Filter Effects chapter
- Removed the body of this chapter and replaced it with a link to the
Filter Effect specification.
Interactivity chapter
- Added the 'tabindex' attribute.
- Corrected the definition of the 'cursor/xlink:href' attribute on
the 'cursor element' element to take an URL that is not in a CSS-like
functional form.
- Added the bounding-box keyword to 'pointer-events'.
- Replaced SVGLoad, SVGAbort, SVGError and SVGUnload with load, abort, error and unload respectively.
- Required that only structurally external elements and the rootmost svg element must fire load events.
- Replaced SVGResize and SVGScroll with resize and scroll respectively.
- Removed DOMActivate.
- Replaced DOMFocusIn and DOMFocusOut with focusin and focusout, and added the blur event.
- Added keyboard events.
- Removed mutation events.
Linking chapter
- Added animation elements to the content model of 'view'.
- Added the possibility to link to SVG resources with fragment identifiers defined by the Media Fragments specification.
Scripting chapter
- Removed the 'contentScriptType' attribute.
- Removed 'onload' from AnimationEvents.
Animation chapter
Fonts chapter
- Added WOFF requirement, rearranged content.
- Removed this chapter and the SVG Fonts
feature is contained, including the
'font',
'glyph',
'missing-glyph',
'hkern',
'vkern',
'font-face',
'font-face-src',
'font-face-uri',
'font-face-format' and
'font-face-name' elements
and their corresponding IDL interfaces.
Extensibility chapter
Document Type Definition appendix
- Removed this appendix, as SVG 2 is not defined in terms of a DTD.
SVG Document Object Model (DOM) appendix
- Added text to require IDL fragments be interpreted as Web IDL.
- Removed some unnecessary text.
- Removed mention of read only nodes in the DOM, since that concept no longer
exists in DOM4.
- Removed the table defining how properties
are exposed as specific types of CSSValue objects, since CSSValue has been
removed.
Java Language Binding appendix
- Removed this appendix, as language bindings are now defined by
Web IDL.
ECMAScript Language Binding appendix
- Removed this appendix, as language bindings are now defined by
Web IDL.
References appendix
- Removed normative reference to CSS2.
- Removed informative reference to DOM Level 3 Core.
- Changed normative reference to DOM Level 1 Core to be informative.
- Changed normative reference from DOM Level 2 Core to DOM4.
- Changed informative reference to SMIL 3 to be normative.
- Added normative references to CSS3 Color, CSS3 Fonts, CSS3 Line Box, CSS3 Transforms, CSS3 UI, CSS3 Values and Units, CSS4 Images, Filter Effects, WOFF, Web IDL.
- Added informative references to CSS 3 Transitions and Animations.
- Updated reference from DOM Level 2 Events to DOM Level 3 Events and added a normative reference to UI Events.
- Added normative reference to WAI-ARIA 1.1.
- Added normative reference to Shadow DOM.
IDL Index appendix