AdguardTeam / ExtendedCss

A TypeScript library for non-standard element selecting — :contains(), :matches-css(), etc., and applying CSS styles with extended properties.
GNU General Public License v3.0
65 stars 9 forks source link

`:has(~ selector )` bug #172

Open piquark6046 opened 1 year ago

piquark6046 commented 1 year ago

div:has(~ .asdf) is returned as parent element > div:not(.asdf).

For example, in browse.auction.co.kr, you will face the error if you add asdf class in one of .section--module_wrap > .component--item_card.type--general elements and run the selector.

Environment: Brave 1.51.118; AdGuard Extended Css Debugger (ExtCSS Lib version: 2.0.52) Related issue: https://github.com/AdguardTeam/AdguardFilters/issues/152303