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
  */
@@ -6542,7 +6542,8 @@
6542
6542
  // Edge does not provide value for cssText
6543
6543
  for (var i = style.length - 1; i >= 0; i--) {
6544
6544
  var property = style.item(i);
6545
- if (ignoredStyleProperties.indexOf(property) === -1) {
6545
+ // fix: Chrome_138 ignore custom properties
6546
+ if (ignoredStyleProperties.indexOf(property) === -1 && !property.startsWith('--')) {
6546
6547
  target.style.setProperty(property, style.getPropertyValue(property));
6547
6548
  }
6548
6549
  }