Skip to content

All text have black color by default #3224

Open
@MallaSampat18

Description

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.
Screenshot 2024-12-20 123310
This is the canvas screenshot using html2canvas. All texts are having black color.
LKST646
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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions