|
|
@@ -1220,14 +1220,14 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
} else if (ruleData.type == "Atrule" && (ruleData.name == "media" || ruleData.name == "supports")) {
|
|
|
promises.push(this.processStylesheet(ruleData.block.children.toArray(), baseURI, options, cssVariables, batchRequest));
|
|
|
} else if (ruleData.type == "Atrule" && ruleData.name == "font-face") {
|
|
|
- promises.push(processDeclaration(ruleData));
|
|
|
+ promises.push(processFontFaceRule(ruleData));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
removedRules.forEach(cssRule => cssRules.remove(cssRule));
|
|
|
await Promise.all(promises);
|
|
|
|
|
|
- async function processDeclaration(cssRule) {
|
|
|
+ async function processFontFaceRule(cssRule) {
|
|
|
await Promise.all(cssRule.block.children.toArray().map(async declaration => {
|
|
|
if (declaration.type == "Declaration") {
|
|
|
const urlFunctions = DomUtil.getUrlFunctions(DomUtil.getCSSValue(declaration.value));
|