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

Fix parsing and conversion for uBO's negated matches-media procedural filter #149

Open
scripthunter7 opened this issue Feb 24, 2025 · 0 comments

Comments

@scripthunter7
Copy link
Member

Currently AGTree throws an error for :not(:matches-media(...)): uBO modifier ':matches-media(...)' cannot be nested

e.g. https://github.com/finnish-easylist-addition/finnish-easylist-addition/blob/d88bd01f1cc9191fb00b8b3fbeb01b11049b57c8/Finland_adb_uBO_extras.txt#L8

Regarding to conversion, we should convert such rules as

#$#@media not (<media-query-from-ubo>) { <selector-list> { <declaration-list> } }

See https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_media_queries/Using_media_queries#inverting_a_querys_meaning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants