Unfortunately, with the current version 3.1.12, the CSS becomes invalid due to Autoptimize, especially when combined with CSS nesting.
.container {
& .parent {
scroll-padding: 0px max((((100% - var(--wrapper-big)) / 2) + var(--wrapper-padding)), var(--wrapper-padding));
& .item + .item {
margin-left: var(--wrapper-padding);
}
}
}
In the example, which contains the Adjacent sibling combinator ".item + .item", the spaces around the + inside the calc (max) are removed. This makes the CSS invalid and it does not work.
Unfortunately, with the current version 3.1.12, the CSS becomes invalid due to Autoptimize, especially when combined with CSS nesting.
In the example, which contains the Adjacent sibling combinator ".item + .item", the spaces around the + inside the calc (max) are removed. This makes the CSS invalid and it does not work.