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
Copied from the issue in the main repo (which seems forgotten).
I have a page with lots of css variables (around 1333) set in :root, and each of them gets copied into each element inside the canvas, because apparently in Firefox, getComputedStyle returns not only all styles, but all of the applied css variables as well.
Is it possible to add an option something like filterStyles that we could use to filter out which computed styles we want to be included in the saved image and which not? We could use filtering by -- prefix to filter out CSS variables.
Use case:
Copied from the issue in the main repo (which seems forgotten).
I have a page with lots of css variables (around 1333) set in
:root
, and each of them gets copied into each element inside the canvas, because apparently in Firefox,getComputedStyle
returns not only all styles, but all of the applied css variables as well.Is it possible to add an option something like
filterStyles
that we could use to filter out which computed styles we want to be included in the saved image and which not? We could use filtering by--
prefix to filter out CSS variables.Expected behavior
Actual behavior (stack traces, console logs etc)
Currently all 1300 css variables are set on each node, making the image file so big that it fails to be saved in Firefox
Library version
2.6.0
Browsers
The text was updated successfully, but these errors were encountered: