Open 2knu opened 1 year ago
👋 @2knu
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.
This happens in Chrome and Edge for me, but not in Firefox
Also, I worked around this by temporarily setting the overflow: hidden
style property for all elements before calling toPng
When you add a custom styling for scrollbars like the color, width etc. it will be wrong in resulting screenshot. Example to define styled scrollbars: https://codepen.io/team/css-tricks/pen/QWWXQzE
Expected Behavior
Size, Color, etc. is exact the same in resulting screenshot
Current Behavior
Default style from scrollbars is visible instead of custom styled. The scroll position seems to be wrong too sometimes
Possible Solution
Steps To Reproduce
Additional Context
Example:
Generated with html-to-image![scroll_generated](https://user-images.githubusercontent.com/5759755/205660909-d54538fb-7bdd-497c-a206-ed9ea546170d.png)
(The whitespace is just because we use shadow dom for performance reasons)
Your Environment