single-file-core 1.6.34 → 1.6.35
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/core/helper.js
CHANGED
|
@@ -802,7 +802,6 @@ function getElementsInfo(win, doc, element, options, data = { usedFonts: new Map
|
|
|
802
802
|
if (options.removeUnusedFonts && doc.defaultView && !headChild) {
|
|
803
803
|
const elementCharacters = getElementCharacters(win, element);
|
|
804
804
|
getUsedFont(computedStyle, data.usedFonts, data.usedFontsCharacters, elementCharacters);
|
|
805
|
-
getUsedFont(getComputedStyle(win, element, ":first-letter"), data.usedFonts, data.usedFontsCharacters, elementCharacters);
|
|
806
805
|
const beforeStyle = getComputedStyle(win, element, ":before");
|
|
807
806
|
getUsedFont(beforeStyle, data.usedFonts, data.usedFontsCharacters, getPseudoElementCharacters(beforeStyle));
|
|
808
807
|
const afterStyle = getComputedStyle(win, element, ":after");
|
|
@@ -813,6 +812,7 @@ function getElementsInfo(win, doc, element, options, data = { usedFonts: new Map
|
|
|
813
812
|
getUsedFont(getComputedStyle(win, element, "::marker"), data.usedFonts);
|
|
814
813
|
}
|
|
815
814
|
if (BLOCK_CONTAINER_DISPLAY_VALUES.includes(display)) {
|
|
815
|
+
getUsedFont(getComputedStyle(win, element, ":first-letter"), data.usedFonts, data.usedFontsCharacters, elementCharacters);
|
|
816
816
|
getUsedFont(getComputedStyle(win, element, "::first-line"), data.usedFonts, data.usedFontsCharacters, elementCharacters);
|
|
817
817
|
}
|
|
818
818
|
if ((tagName == "INPUT" || tagName == "TEXTAREA") && element.getAttribute("placeholder")) {
|
package/package.json
CHANGED
|
@@ -71,7 +71,7 @@ const FRAME_OPTION_NAMES = [
|
|
|
71
71
|
"loadDeferredContentBlockStorage"
|
|
72
72
|
];
|
|
73
73
|
const TARGET_ORIGIN = "*";
|
|
74
|
-
const TIMEOUT_INIT_REQUEST_MESSAGE =
|
|
74
|
+
const TIMEOUT_INIT_REQUEST_MESSAGE = 2000;
|
|
75
75
|
const TIMEOUT_INIT_RESPONSE_MESSAGE = 10000;
|
|
76
76
|
const TOP_WINDOW_ID = "0";
|
|
77
77
|
const WINDOW_ID_SEPARATOR = ".";
|