Closed OverflowCat closed 1 month ago
Thanks, this is known and will be fixed by https://github.com/withastro/astro/pull/11976
This should actually fixed by #12014, which is in beta-2. Could you upgrade and see if it's working?
@ascorbic Just upgraded and looks like the CSS leak is sorted now 🚀 Thanks for the fix.
I'm going to stick with collections for now, though, as I found layout
support in Markdown still isn’t there yet 😅
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
render
in 'astro:content' to render pagexxx.css
(In the MRE we write* { color: red}
)import 'xxx.css'
in an MDX file, or its layout. In the MRE I putimport '../styles/test.css';
inusing-mdx.mdx
blog/using-mdx
https://github.com/user-attachments/assets/f5d04521-be22-4ec1-8f65-f5fccfd12794
What's the expected result?
Imported CSS not leaking into other pages
Link to Minimal Reproducible Example
https://stackblitz.com/edit/astro-leaky-css?file=src%2Fblog%2Fusing-mdx.mdx
Participation