Home
Categories
Dictionary
Download
Project Details
FAQ
License

SVG root support


The SVG root following attributes are supported[1] :
  • The width and height attributes
  • The viewBox attribute
  • The preserveAspectRatio attribute

Nesting svgt elements

Nesting svg elements is supported. For example the following example:
   <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
      <svg x="10">
         <rect x="10" y="10" height="100" width="100" style="stroke:#ff0000; fill: #0000ff"/>
      </svg>
      <svg x="200">
         <rect x="10" y="10" height="100" width="100" style="stroke:#009900; fill: #00cc00"/>
      </svg>
   </svg>
will have this result:
nestedSVG

Notes


Categories: Fromsvgsupport

Copyright 2021-2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD-3-Clause License