clean-css-cli
clean-css-cli copied to clipboard
incorrect handling of the `@container` at-rule
The (first) selector inside the at-rule together with the opening { of the rule-block and the first property-value pair is removed. (treated as an invalid property name).
input:
@container item (min-width: 400px) {
.item_inner {
display: flex;
flex-direction: row;
align-items: center;
}
}
output:
@container item (min-width: 400px){flex-direction:row;align-items:center}
.item_inner { display: flex; is removed, treated as an invalid peoperty name
Testedon macOS 12 with clean-css-cli 5.6.1 and reproduced on the clean-css website.
Both are fixed in clean-css-cli 5.6.2.