Skip to content

Commit fe7f9a1

Browse files
authored
Do not validate a CSS declaration if its key is interpolated (#2036)
* Do not validate a CSS declaration if itss key is interpolated * add changelog
1 parent 262961c commit fe7f9a1

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
emitted in source order as much as possible, instead of always being emitted
55
after the CSS of all module dependencies.
66

7+
* Fix a bug where an interpolation in a custom property name crashed if the file
8+
was loaded by a `@use` nested in an `@import`.
9+
710
### JavaScript API
811

912
* Produce a better error message when an environment that supports some Node.js

lib/src/visitor/async_evaluate.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3034,7 +3034,7 @@ class _EvaluateVisitor
30343034

30353035
Future<void> visitCssDeclaration(CssDeclaration node) async {
30363036
_parent.addChild(ModifiableCssDeclaration(node.name, node.value, node.span,
3037-
parsedAsCustomProperty: node.isCustomProperty,
3037+
parsedAsCustomProperty: node.parsedAsCustomProperty,
30383038
valueSpanForMap: node.valueSpanForMap));
30393039
}
30403040

lib/src/visitor/evaluate.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// DO NOT EDIT. This file was generated from async_evaluate.dart.
66
// See tool/grind/synchronize.dart for details.
77
//
8-
// Checksum: 0f0705b9773f694816ebf00cc91f43146d8c46ab
8+
// Checksum: 81aac8d1ac5bea43a019307cc5eb754610b0c6be
99
//
1010
// ignore_for_file: unused_import
1111

@@ -3009,7 +3009,7 @@ class _EvaluateVisitor
30093009

30103010
void visitCssDeclaration(CssDeclaration node) {
30113011
_parent.addChild(ModifiableCssDeclaration(node.name, node.value, node.span,
3012-
parsedAsCustomProperty: node.isCustomProperty,
3012+
parsedAsCustomProperty: node.parsedAsCustomProperty,
30133013
valueSpanForMap: node.valueSpanForMap));
30143014
}
30153015

0 commit comments

Comments
 (0)