Skip to content

The complex CSS is removed #7291

@rafaucau

Description

@rafaucau

Bug Description

I have such CSS and it works fine on the standard version of the site:

:where(.container) {
   width: min(var(--container-max-width), 100% - calc(var(--container-padding) * 2));
   margin-inline: auto;
}

However, when I display the AMP version of the page, it is broken because there is only such CSS left in the .container class:

:where(.container) {
   margin-inline: auto;
}

I don't even see in the file preview that it was removed, so it's probably some kind of bug:
image
image

Expected Behaviour

It shouldn't be removed.

Screenshots

No response

PHP Version

8.1

Plugin Version

2.3.0

AMP plugin template mode

Transitional

WordPress Version

6.0.2

Site Health

No response

Gutenberg Version

No response

OS(s) Affected

All

Browser(s) Affected

All

Device(s) Affected

All

Acceptance Criteria

No response

Implementation Brief

No response

QA Testing Instructions

No response

Demo

No response

Changelog Entry

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingChangeloggedWhether the issue/PR has been added to release notes.Upstream BugRequires an upstream change from WordPress, Gutenberg, or another dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions