Skip to content

Commit 6d2d858

Browse files
committed
Fix color_expression_test.dart
1 parent ac340c9 commit 6d2d858

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/web_css/test/color_expressions_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const _colors = {
1616

1717
void main() {
1818
group('Color restrictions and rules', () {
19-
// TODO(https://github.com/dart-lang/pub-dev/issues/8248): comment in once issue is resolved.
2019
test('text and bg colors are only defined in _variables.scss', () {
2120
final files = Directory('lib')
2221
.listSync(recursive: true)
@@ -85,7 +84,8 @@ void main() {
8584
value.contains('rgb(') ||
8685
value.contains('rgba(') ||
8786
value.contains('hsl(') ||
88-
_colors.any((c) => value.contains(c));
87+
(_colors.any((c) => value.contains(c)) &&
88+
!value.contains('var(--pub-color-'));
8989
if (!hasColor) continue;
9090

9191
badExpressions.add('${file.path} line #${i + 1}: `${expr.trim()}`');

0 commit comments

Comments
 (0)