SCSS: String contents can be changed in nested interpolations #2734
Labels
lang:css/scss/less
Issues affecting CSS, Less or SCSS
scope:dependency
Issues that cannot be solved inside Prettier itself, and must be fixed in a dependency
type:bug
Issues identifying ugly output, or a defect in the program
is turned into:
Playground
Expected: The inner string,
".5"
, should stay unchanged.This happens because postcss-values-parser does not support interpolations in strings, so it sees the property value as the string
"#{"
followed by the number.5
followed by the string"}"
. shellscape/postcss-values-parser#37The text was updated successfully, but these errors were encountered: