You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The body displays as red because the css is compiled without layers:
body.body {
background: red;
}
body {
background: green;
}
💁 Possible Solution
🔦 Context
In my actual project, the non-layer override is defined dynamically via css-in-js. An example of this can be found in the react branch of the repro repo. I mention this because I'm not sure if parcel(-css) is trying to use static analysis to avoid @layer for compat, but doing so seems invalid when all of the declared browsers support @layer.
🐛 bug report
CSS
@import
layers are ignored in some situations. For example:🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
The
body
should display green with css like this:😯 Current Behavior
The
body
displays as red because the css is compiled without layers:💁 Possible Solution
🔦 Context
In my actual project, the non-layer override is defined dynamically via css-in-js. An example of this can be found in the
react
branch of the repro repo. I mention this because I'm not sure if parcel(-css) is trying to use static analysis to avoid@layer
for compat, but doing so seems invalid when all of the declared browsers support@layer
.💻 Code Sample
Repro repo
🌍 Your Environment
The text was updated successfully, but these errors were encountered: