55// DO NOT EDIT. This file was generated from async_evaluate.dart.
66// See tool/grind/synchronize.dart for details.
77//
8- // Checksum: 6e5710daa106ed0b9b684af8bc61ce9cc233a10b
8+ // Checksum: a3068d04660dd2bed34b884aa6e1a21d423dc4e5
99//
1010// ignore_for_file: unused_import
1111
@@ -1389,9 +1389,12 @@ final class _EvaluateVisitor
13891389
13901390 if (node.value case var expression? ) {
13911391 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 ('--' )) {
13951398 _parent.addChild (
13961399 ModifiableCssDeclaration (
13971400 name,
@@ -1404,11 +1407,6 @@ final class _EvaluateVisitor
14041407 _sourceMap ? node.value.andThen (_expressionNode)? .span : null ,
14051408 ),
14061409 );
1407- } else if (name.value.startsWith ('--' )) {
1408- throw _exception (
1409- "Custom property values may not be empty." ,
1410- expression.span,
1411- );
14121410 }
14131411 }
14141412
0 commit comments