Skip to content

CssText doesn't include text-shadow's color if it's black #97

Closed
@mganss

Description

@mganss
var html = @"<div style=""text-shadow: 2px 2px 2px #000"">test</div>";
var parser = new HtmlParser(new HtmlParserOptions(), BrowsingContext.New(Configuration.Default.WithCss(new CssParserOptions())));
var dom = parser.ParseDocument(html);
var div = dom.QuerySelector("div");
var style = div.GetStyle();
var css = style.CssText;
// -> "text-shadow: 2px 2px 2px"

Also, if you set the blur radius to 0px it will be omitted from CssText as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions