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

Rules with :where() pseudo class are rejected #1609

Closed
AdamWr opened this issue Mar 11, 2022 · 2 comments
Closed

Rules with :where() pseudo class are rejected #1609

AdamWr opened this issue Mar 11, 2022 · 2 comments

Comments

@AdamWr
Copy link
Member

AdamWr commented Mar 11, 2022

Steps to reproduce

  1. Add this rule:
example.org##div > :where(h1, p)

https://developer.mozilla.org/en-US/docs/Web/CSS/:where

  1. Go to - https://example.org/

div > h1 and div > p should be hidden, but rule is rejected.

cssfilter: cssfilter_addrule(): Rule is not valid, ignoring it (example.org##div > :where(h1, p))
AGProxyFilter: Rule rejected by all filters: example.org##div > :where(h1, p)
Screenshot

image

@ameshkov
Copy link
Member

@AdamWr is it okay in the browser extension?

@AdamWr
Copy link
Member Author

AdamWr commented Mar 11, 2022

No, it isn't.
Created issue here - AdguardTeam/AdguardBrowserExtension#1998

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

4 participants