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
However, when I run the dev environment, this is the result:
This leads me to believe that Next does not yet support cascade layers.
Expected Behavior
A cascade layer shouldn't be added to the media attribute of a style tag. Rather, the styles themselves should be wrapped in the layer declaration. Example:
@layer reset {
/* all reset styles here */
...
}
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
Verify canary release
Provide environment information
Operating System:
Platform: win32
Arch: x64
Version: Windows 10 Pro
Binaries:
Node: 16.17.1
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant packages:
next: 13.0.5
eslint-config-next: 13.0.4
react: 18.2.0
react-dom: 18.2.0
What browser are you using? (if relevant)
Chrome Version 107.0.5304.107
How are you deploying your application? (if relevant)
No response
Describe the Bug
I've created an _index.css file which I am importing into _app.tsx, like so:
import "../styles/base/_index.css";
In _index.css I'm importing stylesheets into layers, like so:
However, when I run the dev environment, this is the result:
This leads me to believe that Next does not yet support cascade layers.
Expected Behavior
A cascade layer shouldn't be added to the media attribute of a style tag. Rather, the styles themselves should be wrapped in the layer declaration. Example:
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
https://github.com/kyle-jorve/portfolio-site-next
To Reproduce
Run
npm run dev
. Inspect the stylesheets in the<head>
.The text was updated successfully, but these errors were encountered: