Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS @layer support with imported styles #8385

Open
jh3y opened this issue Aug 9, 2022 · 2 comments
Open

CSS @layer support with imported styles #8385

jh3y opened this issue Aug 9, 2022 · 2 comments

Comments

@jh3y
Copy link

jh3y commented Aug 9, 2022

🐛 bug report

CSS @layer support doesn't work for me with external styles as it would with the spec.

For example;

@import url('https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css') layer(normalize);

is valid and can be seen in use here. I've tried doing the @import wrapped in @layer to see if that could be a workaround but it hasn't worked and ignores the @layer. Is there a workaround here?

🎛 Configuration (.babelrc, package.json, cli command)

Default configuration.

🤔 Expected Behavior

@layer spec is respected and either the styles are inlined into a layer or I can use the external import method from above.

😯 Current Behavior

Ignores @layer completely.

💁 Possible Solution

🔦 Context

💻 Code Sample

🌍 Your Environment

Software Version(s)
Parcel
Node
npm/Yarn
Operating System
@devongovett
Copy link
Member

Possibly the same, though this one seems to be for external styles rather than bundled styles. #8162

@Offirmo
Copy link

Offirmo commented Feb 17, 2024

CSS layers are fully supported by all browsers. Too bad our tools are holding us back 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants