Scalable Vector Graphics (SVG) 1.1 (Second Edition)
Total Page:16
File Type:pdf, Size:1020Kb
28.3.2019 Scalable Vector Graphics (SVG) 1.1 (Second Edition) Scalable Vector Graphics (SVG) 1.1 (Second Edition) 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: [email protected] (archive) Editors: Erik Dahlström, Opera Software <[email protected]> Patrick Dengler, Microsoft Corporation <[email protected]> Anthony Grasso, Canon Inc. <[email protected]> Chris Lilley, W3C <[email protected]> Cameron McCormack, Mozilla Corporation <[email protected]> Doug Schepers, W3C <[email protected]> Jonathan Watt, Mozilla Corporation <[email protected]> Jon Ferraiolo, ex Adobe Systems <[email protected]> (Versions 1.0 and 1.1 First Edition; until 10 May 2006) 藤沢 淳 (FUJISAWA Jun), Canon Inc. <[email protected]> (Version 1.1 First Edition) Dean Jackson, ex W3C <[email protected]> (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: a single-page version, a zip 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 as errata against the First Edition, as well as https://www.w3.org/TR/SVG11/ 1/3 28.3.2019 Scalable Vector Graphics (SVG) 1.1 (Second Edition) numerous other changes that help make the specification more readable and unambiguous. The Changes appendix 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: Changes between the SVG 1.1 First Edition Recommendation and the first Last Call Working Draft of SVG 1.1 Second Edition Changes between the first and second Last Call Working Drafts of SVG 1.1 Second Edition Changes between the second Last Call Working Draft and the Proposed Recommendation of SVG 1.1 Second Edition Changes between the Proposed Recommendation and this document 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 [email protected], the public email list for issues related to vector graphics on the Web. This list is archived and senders must agree to have their message publicly archived from their first posting. To subscribe send an email to [email protected] 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 an implementation 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 the W3C 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 the W3C 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 the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made 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 with section 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 see http://www.w3.org/Graphics/SVG/svg-updates/translations.html. Table of Contents Expanded 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 https://www.w3.org/TR/SVG11/ 2/3 28.3.2019 Scalable Vector Graphics (SVG) 1.1 (Second Edition) 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 1. Appendix A: Document Type Definition 2. Appendix B: SVG Document Object Model (DOM) 3. Appendix C: IDL Definitions 4. Appendix D: Java Language Binding 5. Appendix E: ECMAScript Language Binding 6. Appendix F: Implementation Requirements 7. Appendix G: Conformance Criteria 8. Appendix H: Accessibility Support 9. Appendix I: Internationalization Support 10. Appendix J: Minimizing SVG File Sizes 11. Appendix K: References 12. Appendix L: Element Index 13. Appendix M: Attribute Index 14. Appendix N: Property Index 15. Appendix O: Feature Strings 16. Appendix P: Media Type Registration for image/svg+xml 17. 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 of SVG 1.0 and SVG 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 [email protected] and [email protected] 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. SVG 1.1 (Second Edition) – 16 August 2011Top ⋅ Contents ⋅ Elements ⋅ Attributes ⋅ Properties https://www.w3.org/TR/SVG11/ 3/3.