diff --git a/src/Previewer/Internal.js b/src/Previewer/Internal.js index 7d29bf319..30b3f2276 100644 --- a/src/Previewer/Internal.js +++ b/src/Previewer/Internal.js @@ -257,7 +257,7 @@ function scopeStylesheet(style, id) { for (const node of ast.nodes) { if (node.selector === "window") { node.selector = `#${id}`; - } else if (node.selector) { + } else if (!node.selector.startsWith(":")) { node.selector = `#${id} ${node.selector}`; } }