dom-to-image
dom-to-image copied to clipboard
doesn't generate image if it have srcset attribute
Use case: description, code
<img>
tag doesn't work well if it have srcset
attribute
Expected behavior
The library had to generate an image
Actual behavior (stack traces, console logs etc)
Generated image is empty
Browsers
Chromium v. 66 Firefox v. 60
Yep indeed it doesn't work. My workaround, when using Gatsby and the gatsby-image module, was to use a custom fragment which excludes the srcSet attribute.
any update on this issue?