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
61 stars 9 forks source link

Extended css causes performance issues #83

Closed maximtop closed 4 years ago

maximtop commented 5 years ago

Scroll on the page https://4pda.ru/2019/03/02/356226/ doesn't works smoothly.

Was found that this rule 4pda.ru##body > :not(td):not([id="ipbwrapper"]) > :not(td) > div > div+:not(td):matches-css(height: /|90\.\d\d\d/)

causes such performance issues

Alex-302 commented 5 years ago

Another example(not reproduced on my end) - scrolling is not smooth: https://pikabu.ru/ Performance profile from Chrome dev tools: https://yadi.sk/d/bSUlglkYbV634g