AdguardTeam / AdguardTeam/ExtendedCss

Pseudo-class combined with ':not()' does not work correctly

Đang mở
#166 2 bình luận 3 reaction 1 người được giao Được giao cho @maximtop Xem trên GitHub
Priority: P4
Ngôn ngữ chính
TypeScript
Star
71
Fork
11
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

![image](https://user-images.githubusercontent.com/29142494/230402041-1299cf8f-2711-4f89-95b6-3efd6826ded0.png)

![image](https://user-images.githubusercontent.com/29142494/230402309-44e9dabd-c55d-4119-b749-cc91f35b502a.png)

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

![image](https://user-images.githubusercontent.com/29142494/230402605-3cde2a48-4d0d-4d4e-90e4-09fd57e1d5f9.png)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.