This PR fixes/implements the following bugs/features
[x] Feature: Added support to lch css function at color/parser
Our project uses css lch function to calculate background colours. in order to get screenshots of the components wich are using lch function we needed to add this functionality
Test plan (required)
Demonstrate how the issue/feature can be replicated. For most cases, simply adding an appropriate html/css template into the reftests should be sufficient. Please see other tests there for reference.
Use following styles in examples/existing_canvas.html, ensure the html2canvas works.
Notes:
npm tests passing npm run format makes no changes
Summary
This PR fixes/implements the following bugs/features
Our project uses css lch function to calculate background colours. in order to get screenshots of the components wich are using lch function we needed to add this functionality
Test plan (required)
Demonstrate how the issue/feature can be replicated. For most cases, simply adding an appropriate html/css template into the reftests should be sufficient. Please see other tests there for reference.
Use following styles in examples/existing_canvas.html, ensure the html2canvas works.
before PR:
after PR:
Please make sure that code adheres to the project code formatting. Running
npm run format
will automatically format your code correctly. done