Prerequisites
Description
The syntax for background specifying both position and size separated by a slash is unsupported. #124 seems to be related.
This was initiallly reported as mganss/HtmlSanitizer#536
Steps to Reproduce
var html = @"<div style=""background: center / cover;""></div>";
var conf = Configuration.Default.WithCss(new CssParserOptions
{
IsIncludingUnknownDeclarations = true,
IsIncludingUnknownRules = true,
IsToleratingInvalidSelectors = true,
});
var parser = new HtmlParser(new HtmlParserOptions { IsScripting = true }, BrowsingContext.New(conf));
var dom = parser.ParseDocument(html);
var elem = dom.QuerySelector("div");
var style = elem.GetStyle();
var styleCount = style.Count(); // -> 0
Expected Behavior
The number of styles is nonzero.
Actual Behavior
The number of styles is zero.
Possible Solution / Known Workarounds
No response
Prerequisites
AngleSharp.Xmlfor Xml support)Description
The syntax for
backgroundspecifying both position and size separated by a slash is unsupported. #124 seems to be related.This was initiallly reported as mganss/HtmlSanitizer#536
Steps to Reproduce
Expected Behavior
The number of styles is nonzero.
Actual Behavior
The number of styles is zero.
Possible Solution / Known Workarounds
No response