rails / sass-rails

Ruby on Rails stylesheet engine for Sass
MIT License
859 stars 333 forks source link

var(--tw-empty,/*!*/ /*!*/) wrongly processed #444

Open TutorialDoctor opened 2 years ago

TutorialDoctor commented 2 years ago

TailwindCSS uses this workaround to set the value of a CSS variable to a single empty space:

--tw-ring-inset: var(--tw-empty,/!/ /!/);

This is valid but the sass compressor gives me the following when running tests:

Invalid CSS after "...pty,/*!*/ /*!*/": expected function argument, was ");"

There are more details around this in the following ticket:

tailwindlabs/tailwindcss#2889 https://github.com/tailwindlabs/tailwindcss/issues/3328