csslib
csslib copied to clipboard
A library for parsing CSS.
how to use this lib to read properties and values from a CSS Declaration and store it in a Map. I'm trying to use this lib to convert an SVG...
add support for css container queries https://github.com/angulardart-community/angular/issues/57
Implements the `@counter-style` directive per the spec. --- - [X] I’ve reviewed the contributor guide and applied the relevant portions to this PR. #### Contribution guidelines: - See our [contributor...
The following repro finds 6 errors in `bulma/css/bulma.css` from: https://github.com/jgthms/bulma/releases/tag/0.9.3 ```dart import 'dart:io'; import 'package:csslib/parser.dart'; const testOptions = PreprocessorOptions( useColors: false, checked: false, warningsAsErrors: true, inputFile: 'memory', ); void main()...
I believe the parser currently implements [Selectors Level 3](https://www.w3.org/TR/selectors-3/#grammar) grammar (it at least makes reference to it throughout the code). Unfortunately Selectors Level 3 has very limited support for parsing...
While `@extend` works fine and suit some if my needs, it is not working correctly within `@media` query block. Let's assume the following css ``` .good { color: red; }...
While this ``` .good { color: red; } .better { @extend .good; } ``` is correctly generated as ``` .good,.better { color: red; } .better { } ``` If we...
`@document` is [an alternative to `@-moz-document`](https://developer.mozilla.org/en-US/docs/Web/CSS/@document), but right now csslib parses it as a Less variable. Sass is [already showing deprecation warnings for `@-moz-document`](https://github.com/sass/sass/issues/2529), so userstyles that use Sass are...
It seems not working under the inline-style situation. I only need to parse a list of declarations, which is for the contents of a style attribute.