-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to allow css like ::-webkit-scrollbar ? #322
Comments
Unfortunately, this currently doesn't work due to an issue within AngleSharp.Css. See AngleSharp/AngleSharp.Css#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?
|
@pragatibaheti No, this isn't even supported by any browser: https://caniuse.com/css-nesting |
Add test for #322 Remove beta label on package version
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
The text was updated successfully, but these errors were encountered: