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

CSS pseudo class "has()" not supported #397

Open
PHPGangsta opened this issue Feb 29, 2024 · 0 comments
Open

CSS pseudo class "has()" not supported #397

PHPGangsta opened this issue Feb 29, 2024 · 0 comments

Comments

@PHPGangsta
Copy link
Contributor

Hi!

I have a case with this CSS in an email:

p:has(br:only-child) {
    margin: 0;
    display: none;
}

I'm using
$config->set('Filter.ExtractStyleBlocks', true);

The result is:

p {
    margin: 0;
    display: none;
}

Looks like neither "has()" nor ":only-child" is supported? ":first-child" is supported as far as I saw.

Can I add those 2 missing CSS pseudo selectors/classes somehow via configuration?

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

1 participant