You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to take a screenshot of a canvas using html2canvas. Everything works fine apart from all the text in the canvas are having black color by default. Even after mentioning specific color, it does not gets applied to the screenshot.
This is the actual canvas. The text are having their defined colors.
This is the canvas screenshot using html2canvas. All texts are having black color.
In the project writing css in js using styled components is followed. However, html2canvas was not supporting this so i had to use inline styling. Everything works fine except for the text color.
Specifications:
react version: 17.0.0
html2canvas version tested with: 1.4.1
Browser & version: Google Chrome Version 131.0.6778.140 (Official Build) (64-bit)
Operating system: Windows 11
The text was updated successfully, but these errors were encountered:
I am trying to take a screenshot of a canvas using html2canvas. Everything works fine apart from all the text in the canvas are having black color by default. Even after mentioning specific color, it does not gets applied to the screenshot.
This is the actual canvas. The text are having their defined colors.
This is the canvas screenshot using html2canvas. All texts are having black color.
In the project writing css in js using styled components is followed. However, html2canvas was not supporting this so i had to use inline styling. Everything works fine except for the text color.
Specifications:
The text was updated successfully, but these errors were encountered: