csslib
csslib copied to clipboard
how to parse inline css style
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.
+1
This is what I do:
import 'package:csslib/parser.dart' as css;
final inlineStyle = 'color: red; background: blue;';
final styleSheet = css.parse('*{$inlineStyle}');