Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to parse inline css style #116

Open
dreamer-games opened this issue Sep 29, 2020 · 2 comments
Open

how to parse inline css style #116

dreamer-games opened this issue Sep 29, 2020 · 2 comments
Labels
type-documentation A request to add or improve documentation type-question A question about expected behavior or functionality

Comments

@dreamer-games
Copy link

dreamer-games commented Sep 29, 2020

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.

@devjiangzhou
Copy link

+1

@daohoangson
Copy link
Contributor

This is what I do:

import 'package:csslib/parser.dart' as css;

final inlineStyle = 'color: red; background: blue;';
final styleSheet = css.parse('*{$inlineStyle}');

@devoncarew devoncarew added type-question A question about expected behavior or functionality type-documentation A request to add or improve documentation labels Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-documentation A request to add or improve documentation type-question A question about expected behavior or functionality
Projects
None yet
Development

No branches or pull requests

4 participants