HtmlSanitizer icon indicating copy to clipboard operation
HtmlSanitizer copied to clipboard

CSS at-rule stripping off

Open pragatibaheti opened this issue 3 years ago • 1 comments

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

pragatibaheti avatar Jan 19 '22 19:01 pragatibaheti

@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

mganss avatar Jan 20 '22 12:01 mganss