stylis icon indicating copy to clipboard operation
stylis copied to clipboard

Better leave `&` as original code when there's no CSS Selector

Open nitipit opened this issue 2 years ago • 0 comments

Issue

When using & and there's no CSS Selector, the & has been removed in the compiled code. Since nesting CSS & becomes official in early 2023, It would be better not to remove it.

Input

&.red { background-color: red }

Compiled to

.red { background-color: red }

Expect

Input

&.red { background-color: red }

Compiled to

&.red { background-color: red }

nitipit avatar Dec 30 '23 03:12 nitipit