Merge commit 'c9ba131'

This commit is contained in:
ConnorSkees 2020-06-17 05:34:20 -04:00
commit 74971a7d62

View File

@ -372,7 +372,7 @@ impl<'a> Parser<'a> {
} }
'&' => { '&' => {
let span = self.toks.next().unwrap().pos(); 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) IntermediateValue::Value(Value::Null).span(span)
} else { } else {
IntermediateValue::Value(self.super_selectors.last().clone().into_value()) IntermediateValue::Value(self.super_selectors.last().clone().into_value())