From 4fb10e2e568224693b7feedded8d58bf8ddd361d Mon Sep 17 00:00:00 2001 From: Conduitry Date: Mon, 27 Jan 2020 17:54:54 -0500 Subject: [PATCH] only automatically mark selectors as used if all blocks are :global() --- src/compiler/compile/css/Selector.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compile/css/Selector.ts b/src/compiler/compile/css/Selector.ts index 39bbc2e8d1..e5fe535740 100644 --- a/src/compiler/compile/css/Selector.ts +++ b/src/compiler/compile/css/Selector.ts @@ -32,7 +32,7 @@ export default class Selector { } this.local_blocks = this.blocks.slice(0, i); - this.used = this.blocks[0].global; + this.used = this.blocks.every(block => block.global); } apply(node: Element, stack: Element[]) {