debbefcb43bee8b146546e14b20c2bfd7020c747
Previous flattenColors approach failed because html2canvas reads CSS rules from stylesheets, not computed styles. Now in the onclone callback: 1. Walk all elements, get computed styles from original doc 2. Set every property as inline style on cloned elements 3. Remove all <style> tags and <link rel=stylesheet> from clone This ensures html2canvas never encounters raw color-mix() in stylesheets.
Languages
HTML
85.1%
JavaScript
10%
CSS
4.9%