|
|
@ -292,7 +292,7 @@ export default class Stylesheet {
|
|
|
|
// possibly other future constructs)
|
|
|
|
// possibly other future constructs)
|
|
|
|
if (last && !(last instanceof Atrule)) return;
|
|
|
|
if (last && !(last instanceof Atrule)) return;
|
|
|
|
|
|
|
|
|
|
|
|
if (currentAtrule) {
|
|
|
|
if (currentAtrule && currentAtrule.children) {
|
|
|
|
currentAtrule.children.push(atrule);
|
|
|
|
currentAtrule.children.push(atrule);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.children.push(atrule);
|
|
|
|
this.children.push(atrule);
|
|
|
@ -313,7 +313,7 @@ export default class Stylesheet {
|
|
|
|
const rule = new Rule(node, currentAtrule);
|
|
|
|
const rule = new Rule(node, currentAtrule);
|
|
|
|
stack.push(rule);
|
|
|
|
stack.push(rule);
|
|
|
|
|
|
|
|
|
|
|
|
if (currentAtrule) {
|
|
|
|
if (currentAtrule && currentAtrule.children) {
|
|
|
|
currentAtrule.children.push(rule);
|
|
|
|
currentAtrule.children.push(rule);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.children.push(rule);
|
|
|
|
this.children.push(rule);
|
|
|
|