1
0
Fork 0
freesewing/markdown/dev/reference/api/svg/style/en.md
2022-02-19 08:04:25 +01:00

514 B

title
style

A string that will be rendered as the style section of the SVG document.

The style attribute is where plugins will add additional snippets.

<style type="text/css">
  /* svg.style will be inserted */
</style>
Add, but don't overwrite

When adding your own styles, it's important not to overwrite this property, but rather add your own.

In other words, do this:

svg.style += myStyles;

and don't do this:

svg.style = myStyles;