tailwindcss/playgrounds/vite/src
Philipp Spiess 9fd6766308
Ensure first argument to var(…) still unescapes \_ (#16206)
Resolves #16170

This PR fixes an issue where the previously opted-out escaping of the
first argument for the `var(…)` function was not unescaped at all. This
was introduced in https://github.com/tailwindlabs/tailwindcss/pull/14776
where the intention was to not require escaping of underscores in the
var function (e.g. `ml-[var(--spacing-1_5)]`). However, I do think it
still makes sense to unescape an eventually escaped underline for
consistency.

## Test plan

The example from #1670 now parses as expected:

<img width="904" alt="Screenshot 2025-02-03 at 13 51 35"
src="https://github.com/user-attachments/assets/cac0f06e-37da-4dcb-a554-9606d144a8d5"
/>

---------

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2025-02-04 15:13:18 +01:00
..
app.tsx Ensure first argument to var(…) still unescapes \_ (#16206) 2025-02-04 15:13:18 +01:00
index.css Vite: Fix issues when loading files via static asset queries (#14716) 2024-10-22 16:03:07 +00:00
index.html Vite: Fix issues when loading files via static asset queries (#14716) 2024-10-22 16:03:07 +00:00
main.tsx Vite: Fix issues when loading files via static asset queries (#14716) 2024-10-22 16:03:07 +00:00