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

:is(selector):upward(selector) works very slowly #136

Closed AdamWr closed 3 years ago

AdamWr commented 3 years ago

Related to - https://github.com/AdguardTeam/AdguardFilters/issues/97686

Steps to reproduce

  1. Add this rule:
    euro.com.pl#?#body > :is(a):upward(test)
  2. Go to - https://www.euro.com.pl/telefony-komorkowe.bhtml

Website is loading very slowly due to rule from first point.

If I understand correctly, "running" such rules takes a lot of time, but I think it shouldn't.

image

ameshkov commented 3 years ago

Merged into https://github.com/AdguardTeam/ExtendedCss/issues/110