tag | cd2b0d77e502ee9e08be29a2be9261bab66fd995 | |
---|---|---|
tagger | Kevin Moore <kevmoo@google.com> | Thu Sep 21 12:07:55 2017 -0700 |
object | 4a0a09ba0a0cd2e1d5a5a7e324c58b616e43f067 |
commit | 4a0a09ba0a0cd2e1d5a5a7e324c58b616e43f067 | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@google.com> | Thu Sep 21 11:09:23 2017 -0700 |
committer | Kevin Moore <kevmoo@google.com> | Thu Sep 21 11:09:23 2017 -0700 |
tree | 4f65077f205d6b272bb9b71e3e432e3b34d239dd | |
parent | 36277438c5821904af39e5bf0783b36625c9c2fb [diff] |
Prepare for release
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'; 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 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