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

Rule with pseuso-property remove and :matches-css() does not work stably #112

Closed slavaleleka closed 4 years ago

slavaleleka commented 4 years ago

rule:

thequint.com#$?#.container div:matches-css(height:/90px/) { remove: true; }

where: https://www.thequint.com/news/india/rehana-fathima-posts-video-her-kids-drawing-semi-nude-body

expected: all elements with height:90px should be removed

actual: there are few ad remains (first, second). and if this is the very first page loading — both of them are removed. but after page refreshing only one of them is being removed by the rule — exactly that one which is observed by user

meanwhile, rule without pseuso-property

thequint.com#?#.container div:matches-css(height:/90px/)

hides both of ad remains but makes sidebar shaking while scrolling (which is not cool)

thequint.com#@?#.container div:has(> div > div > .adunitContainer) might be needed for reproducing