blob: 923184873ab3a89145ebeaa3455ef0a1d9a7a449 [file] [log] [blame]
// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:csslib/parser.dart';
import 'package:test/test.dart';
void main() {
group('css', () {
test('rgb', () {
final color = Color.css('rgb(0, 0, 255)');
expect(color, equals(Color(0x0000FF)));
});
test('rgba', () {
final color = Color.css('rgba(0, 0, 255, 1.0)');
expect(color, equals(Color.createRgba(0, 0, 255, 1.0)));
});
});
}