Fix at-rules in nested imports (#758)

Closes #755
This commit is contained in:
Natalie Weizenbaum 2019-07-12 01:55:30 +01:00 committed by GitHub
parent a7172a2b1d
commit 0e47e03305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 4 deletions

View File

@ -1,3 +1,8 @@
## 1.22.4
* Fix a bug where at-rules imported from within a style rule would appear within
that style rule rather than at the root of the document.
## 1.22.3
* **Potentially breaking bug fix:** The argument name for the `saturate()`

View File

@ -2625,7 +2625,10 @@ class _ImportedCssVisitor implements ModifiableCssVisitor<void> {
_ImportedCssVisitor(this._visitor);
void visitCssAtRule(ModifiableCssAtRule node) => _visitor._addChild(node);
void visitCssAtRule(ModifiableCssAtRule node) {
_visitor._addChild(node,
through: node.isChildless ? null : (node) => node is CssStyleRule);
}
void visitCssComment(ModifiableCssComment node) => _visitor._addChild(node);

View File

@ -5,7 +5,7 @@
// DO NOT EDIT. This file was generated from async_evaluate.dart.
// See tool/grind/synchronize.dart for details.
//
// Checksum: 7915d98d80d1288aa327578a9d274d02c814528a
// Checksum: cae91fd0fcd94fbb45712286a85761d69fef5415
//
// ignore_for_file: unused_import
@ -2590,7 +2590,10 @@ class _ImportedCssVisitor implements ModifiableCssVisitor<void> {
_ImportedCssVisitor(this._visitor);
void visitCssAtRule(ModifiableCssAtRule node) => _visitor._addChild(node);
void visitCssAtRule(ModifiableCssAtRule node) {
_visitor._addChild(node,
through: node.isChildless ? null : (node) => node is CssStyleRule);
}
void visitCssComment(ModifiableCssComment node) => _visitor._addChild(node);

View File

@ -1,5 +1,5 @@
name: sass
version: 1.22.3
version: 1.22.4
description: A Sass implementation in Dart.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/sass/dart-sass