Skip to content

CSS Invalid #419

@m-O-rpheus

Description

@m-O-rpheus

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);
		}
	}
}
Screen2

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.

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