Skip to content
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

Support for @media rule #552

Open
jonah1und1 opened this issue Feb 4, 2025 · 1 comment
Open

Support for @media rule #552

jonah1und1 opened this issue Feb 4, 2025 · 1 comment

Comments

@jonah1und1
Copy link
Contributor

jonah1und1 commented Feb 4, 2025

Antisamy seems to not properly support the @media rule.

Expected behaviour
css inside a @media rule should the validated in accordance to the policy provided.

Current behaviour
Antisamy removes the @media rule and everything inside of it.
I've created an example project with a corresponding test:
https://github.com/jonah1und1/antisamy-media

Possible implementation
I've created a PR with a possible implementation for this new feature: #553 .
Please feel free to review and/or comment.

jonah1und1 added a commit to jonah1und1/antisamy that referenced this issue Feb 4, 2025
jonah1und1 added a commit to jonah1und1/antisamy that referenced this issue Feb 4, 2025
jonah1und1 added a commit to jonah1und1/antisamy that referenced this issue Feb 4, 2025
@davewichers
Copy link
Collaborator

@spassarop - Can you look into this and the PR he submitted?

jonah1und1 added a commit to jonah1und1/antisamy that referenced this issue Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants