From 14df143fa67f36f4b523eaceefe59509eb0bab89 Mon Sep 17 00:00:00 2001 From: sid Date: Mon, 30 May 2022 21:55:02 +0530 Subject: [PATCH] fix: handle whitespace token for new ast --- 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 28cf5ba6af..07e2dc439e 100644 --- a/src/compiler/compile/css/Selector.ts +++ b/src/compiler/compile/css/Selector.ts @@ -212,7 +212,7 @@ function apply_selector(blocks: Block[], node: Element, to_encapsulate: Array<{ } if (block.combinator) { - if (block.combinator.type === 'WhiteSpace') { + if (block.combinator.type === 'Combinator' && block.combinator.name === ' ') { for (const ancestor_block of blocks) { if (ancestor_block.global) { continue;