Scalable Vector Graphics (SVG) 1.1 (Second Edition) (original) (raw)

W3C

W3C Recommendation 16 August 2011

This version:

http://www.w3.org/TR/2011/REC-SVG11-20110816/

Latest version:

http://www.w3.org/TR/SVG11/

Previous version:

http://www.w3.org/TR/2011/PR-SVG11-20110609/

Public comments:

www-svg@w3.org (archive)

Editors:

Erik Dahlström, Opera Software <ed@opera.com>

Patrick Dengler, Microsoft Corporation <patd@microsoft.com>

Anthony Grasso, Canon Inc. <anthony.grasso@cisra.canon.com.au>

Chris Lilley, W3C <chris@w3.org>

Cameron McCormack, Mozilla Corporation <cam@mcc.id.au>

Doug Schepers, W3C <schepers@w3.org>

Jonathan Watt, Mozilla Corporation <jwatt@jwatt.org>

Jon Ferraiolo, ex Adobe Systems <jferrai@us.ibm.com>

藤沢 淳 (FUJISAWA Jun), Canon Inc. <fujisawa.jun@canon.co.jp> (Version 1.1 First Edition)

Dean Jackson, ex W3C <dean@w3.org> (Version 1.1 First Edition; until February 2007)

Please refer to the errata for this document, which may include some normative corrections.

This document is also available in these non-normative formats: asingle-page version, azip archive of HTML (without external dependencies), and a PDF. See also translations, noting that the English version of this specification is the only normative version.

Copyright © 2011 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.


Abstract

This specification defines the features and syntax for Scalable Vector Graphics (SVG) Version 1.1, a modularized language for describing two-dimensional vector and mixed vector/raster graphics in XML.

Status of this document

This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.

This document is the 16 August 2011 SVG 1.1 Second Edition Recommendation. The Second Edition incorporates a number of corrections that were published aserrata against the First Edition, as well as numerous other changes that help make the specification more readable and unambiguous. The Changesappendix lists all of the changes that were made since the first Proposed Recommendation publication of the Second Edition. For all changes made between the First Edition and the Second Edition, see:

Comments on this Recommendation are welcome. Corrections against the specification will be published as errata, and subsequently will be incorporated into future editions of SVG 1.1 or into SVG 2.0. Comments can be sent to www-svg@w3.org, the public email list for issues related to vector graphics on the Web. This list isarchived and senders must agree to have their message publicly archived from their first posting. To subscribe send an email to www-svg-request@w3.org with the word subscribe in the subject line.

The W3C SVG Working Group has released an expanded test suite for SVG 1.1 along with animplementation report. This test suite will continue to be updated with new tests to improve interoperability even after Recommendation phase.

This document has been produced by theW3C SVG Working Group as part of the Graphics Activity within the W3C Interaction Domain. The goals of the W3C SVG Working Group are discussed in theW3C SVG Charter. The W3C SVG Working Group maintains a public Web page,http://www.w3.org/Graphics/SVG/, that contains further background information. The authors of this document are the SVG Working Group participants.

This document has been reviewed by W3C Members, by software developers, and by other W3C groups and interested parties, and is endorsed by the Director as a W3C Recommendation. It is a stable document and may be used as reference material or cited from another document. W3C's role in making the Recommendation is to draw attention to the specification and to promote its widespread deployment. This enhances the functionality and interoperability of the Web.

This document was produced by a group operating under the5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosuresmade in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s)must disclose the information in accordance withsection 6 of the W3C Patent Policy.

Available languages

The English version of this specification is the only normative version. However, for translations in other languages seehttp://www.w3.org/Graphics/SVG/svg-updates/translations.html.

Table of Contents

  1. 1 Introduction
  2. 2 Concepts
  3. 3 Rendering Model
  4. 4 Basic Data Types and Interfaces
  5. 5 Document Structure
  6. 6 Styling
  7. 7 Coordinate Systems, Transformations and Units
  8. 8 Paths
  9. 9 Basic Shapes
  10. 10 Text
  11. 11 Painting: Filling, Stroking and Marker Symbols
  12. 12 Color
  13. 13 Gradients and Patterns
  14. 14 Clipping, Masking and Compositing
  15. 15 Filter Effects
  16. 16 Interactivity
  17. 17 Linking
  18. 18 Scripting
  19. 19 Animation
  20. 20 Fonts
  21. 21 Metadata
  22. 22 Backwards Compatibility
  23. 23 Extensibility
  24. Appendix A: Document Type Definition
  25. Appendix B: SVG Document Object Model (DOM)
  26. Appendix C: IDL Definitions
  27. Appendix D: Java Language Binding
  28. Appendix E: ECMAScript Language Binding
  29. Appendix F: Implementation Requirements
  30. Appendix G: Conformance Criteria
  31. Appendix H: Accessibility Support
  32. Appendix I: Internationalization Support
  33. Appendix J: Minimizing SVG File Sizes
  34. Appendix K: References
  35. Appendix L: Element Index
  36. Appendix M: Attribute Index
  37. Appendix N: Property Index
  38. Appendix O: Feature Strings
  39. Appendix P: Media Type Registration for image/svg+xml
  40. Appendix Q: Changes

Acknowledgments

The SVG Working Group would like to thank the following people for contributing to this specification by raising issues that resulted in errata that were folded in to this document: Tavmjong Bah, Brian Birtles, Tolga Capin, Alex Danilo, Thomas DeWeese, Alexey Feldgendler, Vincent Hardy, Ian Hickson, Olaf Hoffmann, Daniel Holbert, Oliver Hunt, Anne van Kesteren, Takeshi Kurosawa, Paul Libbrecht, Robert Longson, Helder Magalhães, Robert O’Callahan, Olli Pettay, Antoine Quint, Kalle Raita, Tim Rowley, Peter Sorotokin, Henry S. Thompson, Jasper van de Gronde, Mohamed Zergaoui, Boris Zbarsky.

In addition, the SVG Working Group would like to acknowledge the contributions of the editors and authors ofSVG 1.0 andSVG 1.1 (First Edition), as much of the text in this document derives from these earlier versions of the SVG specification.

Finally, the SVG Working Group would like to acknowledge the great many people outside of the SVG Working Group who help with the process of developing the SVG specifications. These people are too numerous to list individually. They include but are not limited to the early implementers of the SVG 1.0 and 1.1 languages (including viewers, authoring tools, and server-side transcoders), developers of SVG content, people who have contributed on the www-svg@w3.org andsvg-developers@yahoogroups.com email lists, other Working Groups at the W3C, and the W3C Team. SVG 1.1 is truly a cooperative effort between the SVG Working Group, the rest of the W3C, and the public and benefits greatly from the pioneering work of early implementers and content developers, feedback from the public, and help from the W3C team.