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

#\# being improperly escaped in CSS #4339

Closed
1 task done
mayank99 opened this issue Aug 15, 2022 · 1 comment
Closed
1 task done

#\# being improperly escaped in CSS #4339

mayank99 opened this issue Aug 15, 2022 · 1 comment

Comments

@mayank99
Copy link
Contributor

mayank99 commented Aug 15, 2022

What version of astro are you using?

1.0.5

Are you using an SSR adapter? If so, which one?

none

What package manager are you using?

npm

What operating system are you using?

Windows / Stackblitz

Describe the Bug

I'm trying to use @csstools/postcss-cascade-layers which works by generating selectors that look like this: :not(#\#). Astro incorrectly converts these to :not(#\\#) which is not the same thing (the selector no longer matches).

The same thing happens in both dev server as well as prod build.

Compare with vite which can handle it correctly: https://stackblitz.com/edit/vitejs-vite-7cdd3b?file=style.css,vite.config.js,index.html

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-ja8xka?file=src%2Fpages%2F_style.css,src%2Fpages%2Findex.astro

Participation

  • I am willing to submit a pull request for this issue.
@bluwy
Copy link
Member

bluwy commented Aug 16, 2022

I believe this is a duplicate of withastro/compiler#502

@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Aug 16, 2022
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

2 participants