-
-
Notifications
You must be signed in to change notification settings - Fork 41
Style empty if text-align
is start
#151
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
Comments
I think its rather that Back then the That being written, surely we can support the new values for |
FWIW this used to work before AngleSharp 0.10: var html = @"<p style=""text-align: start;"">this is the content of the p tag</p>";
var parser = new HtmlParser(new HtmlParserOptions { IsScripting = false },
BrowsingContext.New(Configuration.Default.WithCss(e =>
{
e.Options = new CssParserOptions
{
IsIncludingUnknownDeclarations = true,
IsIncludingUnknownRules = true,
IsToleratingInvalidSelectors = true,
};
})));
var dom = parser.Parse(html);
var style = dom.Body.FirstElementChild.Style;
var decls = style.Count(); // -> 1
var css = style.ToCss(); // "text-align: start" |
Landed in |
Hey @FlorianRappl , thank you for all of the work to support this library! Would it be possible to back port this change to the |
Unfortunately no - if that particular patch is relevant for your company then maybe sponsoring AngleSharp / other relevant libraries would be a great start to contributing back. |
Do you have an ETA on when version |
I wanted to close it out in February, but there are too many projects consuming my time. I'd say not before mid / end of March. |
Okay I understand, thank you, I'll check back in then! |
I have a feeling this is a configuration issue but I can't figure out what I'm missing here:
This does not occur if the value of
text-align
isleft
for example.The text was updated successfully, but these errors were encountered: