niklasvh / html2canvas

Screenshots with JavaScript
https://html2canvas.hertzen.com/
MIT License
30.52k stars 4.8k forks source link

behavior of box-shadow and inset #1987

Open bills-appworks opened 5 years ago

bills-appworks commented 5 years ago

Bug reports:

(Related issue: #1848) In the rendering result when inset is specified for box-shadow, the colors may be reversed or the shape may be defective. Following is reproduce in CodePen. https://codepen.io/bills-appworks/pen/MWgvZyJ

If source HTML element at near in directly body element, mitigate behavior. In Codepen, "#html2canvas00" element and rendering result is last in body. "#html2canvas00" and "#html2canvas01" elements are same style attributes, but different rendering result.

Specifications:

Maki-Db commented 1 month ago

U can try to switch to https://github.com/bubkoo/html-to-image