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
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
Check if webscroll styling exists and apply to cloned nodes were scrollbars are visible
set scrollTop and scrollLeft to use the corret scrollposition
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.
2knu
changed the title
Styling from scrollbars is wrong in resulting screenshot
Styling and positions from scrollbars are wrong in resulting screenshot
Dec 5, 2022
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
(The whitespace is just because we use shadow dom for performance reasons)
Your Environment
The text was updated successfully, but these errors were encountered: