workaround @ at-root and interpolated super selectors
This commit is contained in:
parent
1f82d65eac
commit
c9ba1317e0
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user