5
5
// DO NOT EDIT. This file was generated from async_evaluate.dart.
6
6
// See tool/grind/synchronize.dart for details.
7
7
//
8
- // Checksum: 6e5710daa106ed0b9b684af8bc61ce9cc233a10b
8
+ // Checksum: a3068d04660dd2bed34b884aa6e1a21d423dc4e5
9
9
//
10
10
// ignore_for_file: unused_import
11
11
@@ -1389,9 +1389,12 @@ final class _EvaluateVisitor
1389
1389
1390
1390
if (node.value case var expression? ) {
1391
1391
var value = expression.accept (this );
1392
- // If the value is an empty list, preserve it, because converting it to CSS
1393
- // will throw an error that we want the user to see.
1394
- if (! value.isBlank || _isEmptyList (value)) {
1392
+ if (! value.isBlank ||
1393
+ // If the value is an empty list, preserve it, because converting it
1394
+ // to CSS will throw an error that we want the user to see.
1395
+ _isEmptyList (value) ||
1396
+ // Custom properties are allowed to have empty values, per spec.
1397
+ name.value.startsWith ('--' )) {
1395
1398
_parent.addChild (
1396
1399
ModifiableCssDeclaration (
1397
1400
name,
@@ -1404,11 +1407,6 @@ final class _EvaluateVisitor
1404
1407
_sourceMap ? node.value.andThen (_expressionNode)? .span : null ,
1405
1408
),
1406
1409
);
1407
- } else if (name.value.startsWith ('--' )) {
1408
- throw _exception (
1409
- "Custom property values may not be empty." ,
1410
- expression.span,
1411
- );
1412
1410
}
1413
1411
}
1414
1412
0 commit comments