AdguardTeam / AdguardTeam/ExtendedCss
Pseudo-class combined with ':not()' does not work correctly
- Dominant language
- TypeScript
- Stars
- 71
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
It looks like a regression and it started occurring in AdGuard Browser extension version 4.1.55, but works correctly in version 4.1.53.
The same issue occurs in latest nightly build for Windows 7.13 nightly 8 (build 4242, CL 1.11.79).
Steps to reproduce:
1. Add this rule:
```adblock
example.org#?#div:matches-css(margin: /./) > :not(p)
```
or
```adblock
example.org#?#div:has(a) > :not(p)
```
2. Go to - https://example.org/
Rule hides `div` but it should hide only `h1` element.
Screenshots


Related issues:
https://github.com/AdguardTeam/AdguardFilters/issues/147558
https://github.com/AdguardTeam/AdguardFilters/issues/147319#issuecomment-1499966394
With extension version 4.1.53
Screenshots

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.