single-file-core 1.0.11 → 1.0.12
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/package.json +1 -1
- package/single-file-core.js +1 -1
package/package.json
CHANGED
package/single-file-core.js
CHANGED
|
@@ -1081,7 +1081,7 @@ class Processor {
|
|
|
1081
1081
|
if (element.tagName == "LINK") {
|
|
1082
1082
|
stylesheet = await ProcessorHelper.resolveLinkStylesheetURLs(element.href, baseURI, options, workStyleElement);
|
|
1083
1083
|
} else {
|
|
1084
|
-
stylesheet = cssTree.parse(element.
|
|
1084
|
+
stylesheet = cssTree.parse(element.textContent, { context: "stylesheet", parseCustomProperty: true });
|
|
1085
1085
|
const importFound = await ProcessorHelper.resolveImportURLs(stylesheet, baseURI, options, workStyleElement);
|
|
1086
1086
|
if (importFound) {
|
|
1087
1087
|
stylesheet = cssTree.parse(cssTree.generate(stylesheet), { context: "stylesheet", parseCustomProperty: true });
|