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

:has() pseudo-class defaults to extended CSS rule #2148

Closed
pkrayzy opened this issue Mar 22, 2023 · 2 comments
Closed

:has() pseudo-class defaults to extended CSS rule #2148

pkrayzy opened this issue Mar 22, 2023 · 2 comments

Comments

@pkrayzy
Copy link

pkrayzy commented Mar 22, 2023

Adguard / SafariConverterLib treats all :has() pseudo-class rules as advanced extended CSS rules, however Safari and WebKit natively support CSS Selectors Level 4, including :has().

Rules prefixed with ## should default to a standard CSS rule, while more complicated and nested use of :has() prefixed with #?# or #$?# should be treated as an advanced extended CSS selector rule.

@Versty
Copy link
Contributor

Versty commented Mar 27, 2023

@pkrayzy During the development process we have discovered the bug in the WebKit that prevented us from making changes related to the :has() pseudo-class rules. This bug has recently been fixed, so we will continue to work on this improvement.

Follow up the progress: AdguardTeam/SafariConverterLib#43

@pkrayzy
Copy link
Author

pkrayzy commented Mar 27, 2023

@Versty Thanks so much!

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