Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nitipit opened this issue Dec 30, 2023 · 0 comments
Open

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

nitipit opened this issue Dec 30, 2023 · 0 comments

Comments

@nitipit
Copy link

nitipit commented Dec 30, 2023

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 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant