Skip to content

Style empty if text-align is start #151

Closed
@mganss

Description

@mganss

I have a feeling this is a configuration issue but I can't figure out what I'm missing here:

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(new CssParserOptions())));
var dom = parser.ParseDocument(html);
var style = dom.Body.FirstElementChild.GetStyle();
var decls = style.Count(); // -> 0
var css = style.ToCss(); // -> ""

This does not occur if the value of text-align is left for example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions