CoreLibs
CoreLibs copied to clipboard
Add mobile browsers to the list of user agents, which support `:has()` natively
Related to - https://github.com/AdguardTeam/CoreLibs/issues/1840 and https://github.com/AdguardTeam/CoreLibs/issues/1683, but for mobile browsers.
It seems that currently in mobile browsers (the same on desktop in mobile view) rules with :has() use ExtendedCSS instead of native :has().
Steps to reproduce
- Add this rule:
example.org##div:has(a)
- Go to - https://example.org/
- Open devtools and search for
div
In desktop view native :has() is used.
Screenshot desktop
In mobile view ExtendedCSS is used.
Screenshot mobile
The same occurs on real Android device.
Screenshot Android
AdGuard for Windows 7.17.0 nightly 20 (4637) (CL 1.14.25, DL 2.5.4 ) AdGuard for Android v4.4 Nightly 35