dom-to-image
dom-to-image copied to clipboard
Doesn't support tag <use> in SVG images
If there is SVG image rendered using tag <use xlinkHref="..."/>(ReacrJS) doesn't exported to the png image.
Browsers
- [ ] Chrome 49+
- [ ] Firefox 45+
any updates on this issue ? @SimchaShats
@Abdelrahman-Atia @SimchaShats what is your use case?
I am polishing off some code that will properly handle SVG use tags when the tag points to a symbol definition defined in a SVG document that isnt a child of the one we are capturing. I am curious what you are trying to accomplish so I can try and make my solution more robust.
In my case, the symbol definition inside the top 'body' element, outside the dom I pass to domtoimage
I patch @cnatis 's commit, it done to me.But it lose the color which set 'currentColor'.It always get the defaultValue (black) instead of the inheritance