Closed sikkamukul closed 2 years ago
Unfortunately, this currently doesn't work due to an issue within AngleSharp.Css. See https://github.com/AngleSharp/AngleSharp.Css/issues/98
Perhaps you can work around the issue by modifying your use case. Do you really want to allow users to input whole style sheets containing vendor specific selectors?
Yes, this use case allows users to enter psuedo elements in css style. Any workaround you would suggest for the same?
No, can't think of a workaround 🤷🏻 Hopefully, this gets addressed by AngleSharp.Css soon.
Related doubt. Also, does it consider nested CSS classes (scss) in style tags while sanitization?
.some-class {
&.another-class {}
}
@pragatibaheti No, this isn't even supported by any browser: https://caniuse.com/css-nesting
Fixed in 7.0.473 (through AngleSharp 0.16.3)
Attaching the sample code :- ::-webkit-scrollbar-thumb { background: #888 } Is being removed on sanitization from style tag Kindly help to retain it after sanitization