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

layer should be read from @import #326

Open
bartveneman opened this issue Apr 24, 2023 · 3 comments
Open

layer should be read from @import #326

bartveneman opened this issue Apr 24, 2023 · 3 comments
Labels
✨ enhancement New feature or request

Comments

@bartveneman
Copy link
Member

bartveneman commented Apr 24, 2023

From Adam Argyle's CodePen:

@import "https://unpkg.com/open-props" layer(base);
@import "https://unpkg.com/open-props/normalize.min.css" layer(base);
@import "https://unpkg.com/open-props/oklch-hues.min.css" layer(base);
@import "https://unpkg.com/open-props/gray-oklch.min.css" layer(base);

I'd expect base to be a layer name, but currently no layers are reported. The same goes for supports() queries.

CSSTree issue: csstree/csstree#259

@bartveneman bartveneman added the ✨ enhancement New feature or request label Apr 24, 2023
@bartveneman
Copy link
Member Author

bartveneman commented Apr 26, 2023

CSSTree 2.3.1 does not yet parse layer() or layer in @import yet.

https://stackblitz.com/edit/node-28ttpj?file=index.js,package.json

But the syntax explorer shows that it should work... https://csstree.github.io/docs/syntax/#AtrulePrelude:import

@bartveneman
Copy link
Member Author

bartveneman commented Sep 21, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Development

No branches or pull requests

1 participant