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
Inline comments are considered part of the value in CSS Custom Properties #2770
Comments
Dart Sass's output is correct here. The CSS custom properties spec allows nearly anything in the value of the comment, and because custom property values are accessible to JS any pre-processing would make Sass no longer a CSS superset. As such, Sass-specific features are turned off in custom property values, with the sole exception of interpolation. Note that because loud comments are a CSS construct that doesn't produce a CSS token node, we could theoretically omit those, but we generally include loud comments in CSS output anyway so I don't think that makes sense either. |
I understand that custom properties have big implications in terms of the unpredictability in their values, but at least comments should be properly handled.
Tested in:
Test Case
Expected
Result
The text was updated successfully, but these errors were encountered: