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

Consider :has() as a standard pseudo-class if ExtendedCss usage is not forced by #?# rule marker #43

Closed
slavaleleka opened this issue Nov 1, 2022 · 0 comments

Comments

@slavaleleka
Copy link
Contributor

:has() pseudo-class has native implementation
https://developer.mozilla.org/en-US/docs/Web/CSS/:has

and since ExtendedCss v2 release the rule with ## marker and :has() should not be considered as ExtendedCss

const rule1 = 'example.org##.sponsored:has(.banner)';
expect(rule1.isExtendedCss()).toBeFalsy();

but :has() pseudo-class should be considered as ExtendedCss if the rule marker is #?#

const rule2 = 'example.org#?#.sponsored:has(.banner)';
expect(rule2.isExtendedCss()).toBeTruthy();

https://github.com/AdguardTeam/ExtendedCss#extended-css-has

@adguard-bot adguard-bot assigned slavaleleka and unassigned tvinzz Mar 28, 2023
adguard pushed a commit to AdguardTeam/AdGuardForSafari that referenced this issue Apr 10, 2023
…not forced by `#?#` rule marker. AG-17273

AdguardTeam/SafariConverterLib#43

Squashed commit of the following:

commit 37b13bd
Author: Slava Leleka <v.leleka@adguard.com>
Date:   Wed Apr 5 19:40:04 2023 +0300

    fix version parsing

commit 829fdd7
Author: Slava Leleka <v.leleka@adguard.com>
Date:   Wed Apr 5 16:45:32 2023 +0300

    add comment to changelog

commit 6bce013
Author: Slava Leleka <v.leleka@adguard.com>
Date:   Wed Apr 5 16:44:14 2023 +0300

    add changelog

commit 2c167f2
Author: Slava Leleka <v.leleka@adguard.com>
Date:   Tue Apr 4 10:45:56 2023 +0300

    update safari-converter-lib to v2.0.39

commit 76539e9
Author: Slava Leleka <v.leleka@adguard.com>
Date:   Mon Apr 3 17:28:00 2023 +0300

    parse safariVersion as float for convertRulesToJson()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants