HtmlSanitizer
HtmlSanitizer copied to clipboard
CSS at-rule stripping off
Hi. I added @counter-style in the allowed list of CSS at rules. But it is stripping off that.
<style>
@counter-style winners-list {
system: fixed;
symbols: url(gold-medal.svg) url(silver-medal.svg) url(bronze-medal.svg);
suffix: " ";
}
</style>
sanitizes to
<style> </style>
Have another CSS at rules stripping off here: Attaching https://dotnetfiddle.net/VHZpLa
@counter-style (and @font-feature-values) are not currently supported by AngleSharp.Css. I've opened an issue here: https://github.com/AngleSharp/AngleSharp.Css/issues/102