html2canvas-pro 1.5.12 → 1.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * html2canvas-pro 1.5.12 <https://yorickshan.github.io/html2canvas-pro/>
2
+ * html2canvas-pro 1.5.13 <https://yorickshan.github.io/html2canvas-pro/>
3
3
  * Copyright (c) 2024-present yorickshan and html2canvas-pro contributors
4
4
  * Released under MIT License
5
5
  */
@@ -6536,7 +6536,8 @@ var copyCSSStyles = function (style, target) {
6536
6536
  // Edge does not provide value for cssText
6537
6537
  for (var i = style.length - 1; i >= 0; i--) {
6538
6538
  var property = style.item(i);
6539
- if (ignoredStyleProperties.indexOf(property) === -1) {
6539
+ // fix: Chrome_138 ignore custom properties
6540
+ if (ignoredStyleProperties.indexOf(property) === -1 && !property.startsWith('--')) {
6540
6541
  target.style.setProperty(property, style.getPropertyValue(property));
6541
6542
  }
6542
6543
  }