Would it be possible to prevent outputting invalid CSS properties that would fail a CSS syntax validation plugin such as csstree/stylelint-validator?
An example of this would be when using a mixin:
const example = css`
${({ height }) => height ? `height: ${height};` : ''}
width: 100%;
`;
which the processor might output
.selector1 {
-styled-mixin0: dummyValue;
width: 100%;
}
My suggestion would be to wrap -styled-mixin0: dummyValue; in a CSS comment or prefix it with one more dash to turn it into a custom property e.g. --styled-mixin0: dummyValue;