tag | 40e691d16131038e357643e4b10375ffc1bf41a7 | |
---|---|---|
tagger | Bob Nystrom <robert@stuffwithstuff.com> | Thu Nov 17 11:15:03 2016 -0800 |
object | af386922e53ac84271f7479fcb011d109659603f |
0.13.2+2
commit | af386922e53ac84271f7479fcb011d109659603f | [log] [tgz] |
---|---|---|
author | Bob Nystrom <robert@stuffwithstuff.com> | Thu Nov 17 10:29:22 2016 -0800 |
committer | Bob Nystrom <robert@stuffwithstuff.com> | Thu Nov 17 10:29:22 2016 -0800 |
tree | a9f46fde1854e8f57bed185550ba866145d1a298 | |
parent | 87d54ac2076121460903e486e619209094940634 [diff] |
Fix warnings. Some dead code, missing returns, and an unused private field.
This is a CSS parser written entirely in Dart. It can be used in the client/server/command line.
This package is installed with Pub, see: install instructions for this package.
Parsing CSS is easy!
import 'package:csslib/parser.dart' show parse; import 'package:csslib/css.dart'; main() { var stylesheet = parse( '.foo { color: red; left: 20px; top: 20px; width: 100px; height:200px }'); print(stylesheet.toString()); }
You can pass a String or list of bytes to parse
.
Basic tests can be found in this repository:
pub run test
The full CSS test suite can be found in https://github.com/dart-lang/csslib-test-suite
cd ../csslib-test-suite ./run.sh