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

Can't parse space separated rgb values #131

Closed
mganss opened this issue Jan 31, 2023 · 1 comment
Closed

Can't parse space separated rgb values #131

mganss opened this issue Jan 31, 2023 · 1 comment

Comments

@mganss
Copy link
Contributor

mganss commented Jan 31, 2023

var html = @"<p style='color: rgb(255 122 127 / 80%)'>Text</p>";
var parser = new HtmlParser(new HtmlParserOptions(), BrowsingContext.New(Configuration.Default.WithCss(new CssParserOptions())));
var dom = parser.ParseDocument(html);
var p = dom.QuerySelector("p");
var s = p.GetStyle();
var color = s.GetColor(); // -> ""

rgb() on MDN

@FlorianRappl
Copy link
Contributor

Implemented and part of the next preview / 1.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants