From c9ba1317e084554fdc2c9ed577545eaf06c1fcc3 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Wed, 17 Jun 2020 05:29:21 -0400 Subject: [PATCH] workaround @ at-root and interpolated super selectors --- src/parse/value.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse/value.rs b/src/parse/value.rs index ed9bf1f..386e7f8 100644 --- a/src/parse/value.rs +++ b/src/parse/value.rs @@ -372,7 +372,7 @@ impl<'a> Parser<'a> { } '&' => { let span = self.toks.next().unwrap().pos(); - if self.super_selectors.is_empty() { + if self.super_selectors.is_empty() && !self.at_root_has_selector && !self.at_root { IntermediateValue::Value(Value::Null).span(span) } else { IntermediateValue::Value(self.super_selectors.last().clone().into_value())