commit | 4eb2b176a199092f4c13b6e12641fa18f41c2c3a | [log] [tgz] |
---|---|---|
author | Jarrett Tierney <serates@gmail.com> | Thu May 18 10:19:58 2017 -0700 |
committer | Leon Senft <leonsenft@users.noreply.github.com> | Thu May 18 10:19:58 2017 -0700 |
tree | 7bd084965d5c6aeafb6411b1e5e7e9adcc06289e | |
parent | 22a351960b4d62eb0c732e5e93349570b078fdda [diff] |
Added a samples test to test csslib on common css frameworks (#51) * Added a samples test to test csslib on common css frameworks * Cleaning up the test and having crawl the files * Removed unnecessary cast * Formatting test file * Switching the script folder detection to mirrors
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