Open Fish1 opened 9 months ago
👋 @Fish1
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
AFAIK CSS custom properties are not iterable from CSSStyleDeclaration
(returned from getComputedStyle
) so in current implementation they won't be reflected in the snapshot image.
I made a PR (https://github.com/bubkoo/html-to-image/pull/436) which added a includeStyleProperties
option which allow users to manually specify the included properties. Though I added it for performance reasons, I believe it's also helpful in the custom properties' case.
CSS variables should be rendered to the background color.
Current Behavior
Chrome doesn't render backgroundColor when it is set to a variable. Firefox renders it properly.
Possible Solution
Not sure at the moment.
Steps To Reproduce
Error Message & Stack Trace
```txt ```
Additional Context
Your Environment
Chrome