Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Alex-302 opened this issue Oct 2, 2023 · 1 comment

Comments

@Alex-302
Copy link
Member

Alex-302 commented Oct 2, 2023

  • Add examples for CSS4 ':has()';
  • Describe limitations of CSS4 ':has()' or add the link https://www.w3.org/TR/selectors-4/#relational and which rules can be converted to native;
  • Describe how CSS4 ':has()' handled in browsers without it's support (old Safari, Firefox without experimental flags), including cases where the selector is not supported by CSS4 (:has(:contains(aaa)));
  • in which cases native implementation may fail to hide an element;
  • performance comparison.
@DandelionSprout
Copy link
Member

DandelionSprout commented Jan 17, 2024

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 (finnish-easylist-addition/finnish-easylist-addition#450 (comment)), "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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants