Astro Info
Astro v7.0.3
Vite v8.1.0
Node v24.15.0
System Linux (x64)
Package Manager npm
Output static
Adapter none
Integrations none
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
With the following Sass in a scoped <style> block:
article :global(> *) {
flex-shrink: 0;
flex-basis: 100%;
scroll-snap-align: center;
}
With Astro 7, the rules inside :global get silently lost, while it works in Astro 6. For it to work in Astro 7, it must be rewritten as
article > :global(*) {
flex-shrink: 0;
flex-basis: 100%;
scroll-snap-align: center;
}
What's the expected result?
Same behaviour in Astro 6 and Astro 7
Link to Minimal Reproducible Example
https://github.com/someonewithpc/astro-global-combinator-repro
Participation
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
With the following Sass in a scoped
<style>block:With Astro 7, the rules inside
:globalget silently lost, while it works in Astro 6. For it to work in Astro 7, it must be rewritten asWhat's the expected result?
Same behaviour in Astro 6 and Astro 7
Link to Minimal Reproducible Example
https://github.com/someonewithpc/astro-global-combinator-repro
Participation