Closed
Description
var html = @"<html><head><style>
p::-webkit-scrollbar-thumb {
background: #888
}
</style></head><body><p>test</p></body></html>";
var parser = new HtmlParser(new HtmlParserOptions(), BrowsingContext.New(new Configuration().WithCss(new CssParserOptions
{
IsIncludingUnknownDeclarations = true,
IsIncludingUnknownRules = true,
IsToleratingInvalidSelectors = true,
})));
var document = parser.ParseDocument(html);
var stylesheet = document.StyleSheets.OfType<ICssStyleSheet>().First();
var rule = stylesheet.Rules.OfType<ICssStyleRule>().First();
var selectorText = rule.SelectorText;
// -> null
rule.Selector
is null, too.