AdguardTeam / KnowledgeBase

AdGuard knowledge base
63 stars 171 forks source link

Describe when native CSS4 ':has()' can be used and how it is handled in browsers without native ':has()' support #341

Open Alex-302 opened 1 year ago

Alex-302 commented 1 year ago
DandelionSprout commented 10 months ago

Sure this thread OP is more than 3 months old by now, but things have picked up very fast after Eyeo sent out an E-mail some days ago to its related filterlist makers that strongly and honestly very suddenly recommended switching from #?# + :has, to ## + :has (except if the entry also has :has-text), the logic being that Firefox Stable (and presumably also Beta and Nightly) added native CSS :has in early December 2023.

I had already converted all of my own lists to ##, but realised regarding EasyList Lithuania and Adblock List for Finland (https://github.com/finnish-easylist-addition/finnish-easylist-addition/pull/450#issuecomment-1896396404), "Wait, hold on the horses a little bit. To which extent would this new syntax affect Firefox ESR and quite a few browsers that are forked from ESR (Tor Browser being the biggest example IIRC), which'd seemingly be quite substantially for Browser Extension; and/or should adblockers even accomodate to ESR at all?"

So, this is certainly a good time to consider relatively fast what to do with this situation.