1
0
Fork 0
freesewing/sites/dev/docs/reference/api/svg/style/readme.mdx

34 lines
513 B
Text
Raw Normal View History

---
title: Svg.style
---
The `Svg.style` property holds a string that will be rendered as the style
section of the SVG document.
## Signature
```svg
<style type="text/css">
/* svg.style will be inserted */
</style>
```
## Notes
The style property is where plugins will add additional styling.
2022-02-19 08:04:25 +01:00
When adding your own styles, it's important not to
overwrite this property, but rather add your own.
In other words, do this:
```js
svg.style += myStyles
```
2022-02-19 08:04:25 +01:00
and don't do this:
```js
svg.style = myStyles
```