html2canvas-pro 2.3.3 → 2.3.4
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.
- package/README.md +6 -2
- package/dist/html2canvas-pro.cjs +7 -5
- package/dist/html2canvas-pro.cjs.map +1 -1
- package/dist/html2canvas-pro.esm.js +7 -5
- package/dist/html2canvas-pro.esm.js.map +1 -1
- package/dist/html2canvas-pro.js +7 -5
- package/dist/html2canvas-pro.js.map +1 -1
- package/dist/html2canvas-pro.min.js +2 -2
- package/dist/lib/css/index.js +8 -1
- package/dist/lib/css/syntax/parser.js +5 -4
- package/package.json +1 -1
package/dist/html2canvas-pro.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* html2canvas-pro 2.3.
|
|
2
|
+
* html2canvas-pro 2.3.4 <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
|
*/
|
|
@@ -1734,9 +1734,10 @@
|
|
|
1734
1734
|
let arg = [];
|
|
1735
1735
|
tokens.forEach((token) => {
|
|
1736
1736
|
if (token.type === 4) {
|
|
1737
|
-
if (arg.length
|
|
1738
|
-
|
|
1739
|
-
|
|
1737
|
+
if (arg.length) {
|
|
1738
|
+
args.push(arg);
|
|
1739
|
+
arg = [];
|
|
1740
|
+
}
|
|
1740
1741
|
return;
|
|
1741
1742
|
}
|
|
1742
1743
|
if (token.type !== 31) arg.push(token);
|
|
@@ -6735,7 +6736,8 @@
|
|
|
6735
6736
|
};
|
|
6736
6737
|
const parseCache = /* @__PURE__ */ new Map();
|
|
6737
6738
|
const parse = (context, descriptor, style) => {
|
|
6738
|
-
|
|
6739
|
+
let rawValue = style !== null && typeof style !== "undefined" ? style.toString() : descriptor.initialValue;
|
|
6740
|
+
if (rawValue.trim() === "") rawValue = descriptor.initialValue;
|
|
6739
6741
|
let valueCache = parseCache.get(descriptor);
|
|
6740
6742
|
if (valueCache) {
|
|
6741
6743
|
const cached = valueCache.get(rawValue);
|