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

ExtendedCSS creates scroll issues on some pages in Safari #120

Closed ameshkov closed 3 years ago

ameshkov commented 3 years ago

Check this issue in Safari repo: https://github.com/AdguardTeam/AdGuardForSafari/issues/469

Scroll gets twitchy when there's any ExtCSS rule applied to a page. The good example is: https://vk.com/stopcoronavirusrf

I've been able to narrow this issue down to Sizzle, it's enough to initialize Sizzle in order for this issue to be reproduced.

What I need you to do:

  1. Install Tampermonkey for Safari
  2. Use a simple userscript to debug the issue: https://gist.github.com/ameshkov/6339dbd8260c3ba68558391ce9b441e3