|
|
@@ -686,9 +686,11 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
if (match) {
|
|
|
const resourceURL = DomUtil.normalizeURL(match.resourceURL);
|
|
|
if (resourceURL != baseURI && resourceURL != ABOUT_BLANK_URI) {
|
|
|
+ const styleSheetUrl = new URL(match.resourceURL, baseURI).href;
|
|
|
let importedStylesheetContent = await Download.getContent(new URL(match.resourceURL, baseURI).href, { asDataURI: false, maxResourceSize: options.maxResourceSize, maxResourceSizeEnabled: options.maxResourceSizeEnabled });
|
|
|
importedStylesheetContent = DomUtil.wrapMediaQuery(importedStylesheetContent, match.media);
|
|
|
if (stylesheetContent.indexOf(cssImport) != -1) {
|
|
|
+ importedStylesheetContent = DomProcessorHelper.resolveStylesheetURLs(importedStylesheetContent, styleSheetUrl);
|
|
|
stylesheetContent = stylesheetContent.replace(cssImport, importedStylesheetContent);
|
|
|
}
|
|
|
}
|