Vite moves @import at the top leading to an erroneous layers order #18384
Labels
bug: upstream
Bug in a dependency of Vite
feat: css
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
I am applying the following css:
to
<h1>Text</h1>
I am expecting:
bootstrap layer to take precedence over reset layer and h1 to have a top margin of 0px.
What is actually happening:
reset layer takes precedence over bootstrap layer and
h1
has a top margin of 100px.Reproduction
https://stackblitz.com/edit/vitejs-vite-ucaxjr?file=main.js,style.css&terminal=dev
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: