-
Notifications
You must be signed in to change notification settings - Fork 383
Closed
Labels
BugSomething isn't workingSomething isn't workingChangeloggedWhether the issue/PR has been added to release notes.Whether the issue/PR has been added to release notes.Upstream BugRequires an upstream change from WordPress, Gutenberg, or another dependency.Requires an upstream change from WordPress, Gutenberg, or another dependency.
Milestone
Description
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:


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
Labels
BugSomething isn't workingSomething isn't workingChangeloggedWhether the issue/PR has been added to release notes.Whether the issue/PR has been added to release notes.Upstream BugRequires an upstream change from WordPress, Gutenberg, or another dependency.Requires an upstream change from WordPress, Gutenberg, or another dependency.