Comma separate keyframe percentage lists (#143)

Fixes #105 

Check for `PercentageTerm` expressions when emitting CSS,
separate neighboring percentage terms with commas.

Lowercase the `AND` for media queries.

Fix some typos in comments.

Co-authored-by: zzwx <8169082+zzwx@users.noreply.github.com>
9 files changed
tree: f9f3b87816606ddbef34516d7245c068d7351eb9
  1. .github/
  2. example/
  3. lib/
  4. test/
  5. third_party/
  6. .gitignore
  7. analysis_options.yaml
  8. CHANGELOG.md
  9. LICENSE
  10. pubspec.yaml
  11. README.md
README.md

A Dart CSS parser.

Usage

Parsing CSS is easy!

import 'package:csslib/parser.dart';

main() {
  var stylesheet = parse(
      '.foo { color: red; left: 20px; top: 20px; width: 100px; height:200px }');
  print(stylesheet.toDebugString());
}

You can pass a String or List<int> to parse.