Skip to content

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

@AdamWr

Description

@AdamWr

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:
example.org#?#div:matches-css(margin: /./) > :not(p)

or

example.org#?#div:has(a) > :not(p)
  1. Go to - https://example.org/

Rule hides div but it should hide only h1 element.

Screenshots

image

image

Related issues:
AdguardTeam/AdguardFilters#147558
AdguardTeam/AdguardFilters#147319 (comment)


With extension version 4.1.53

Screenshots

image

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions