Skip to content

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

Description

@PHPGangsta

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions