There was an error while loading. Please reload this page.
1 parent 8ac4aa1 commit 24dfe05Copy full SHA for 24dfe05
1 file changed
src/modules/pseudo.js
@@ -26,7 +26,7 @@ export async function inlinePseudoElements(source, clone, styleMap, styleCache,
26
for (const pseudo of ["::before", "::after", "::first-letter"]) {
27
try {
28
const style = getStyle(source, pseudo);
29
- if (!style) continue;
+ if (!style || typeof style[Symbol.iterator] !== 'function') continue;
30
31
if (pseudo === "::first-letter") {
32
const normal = getComputedStyle(source);
0 commit comments