We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@import
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.
base
supports()
CSSTree issue: csstree/csstree#259
The text was updated successfully, but these errors were encountered:
CSSTree 2.3.1 does not yet parse layer() or layer in @import yet.
layer()
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
Sorry, something went wrong.
gh-326: add test case for @import layer definitions
6bb2631
Example @import parsing in Svelte: https://github.com/sveltejs/svelte/blob/15bef57aecc3006b6aa88425a6f3b72b304b61cd/packages/svelte/src/compiler/parse/read/css-tree-cq/css_tree_parse.js#L26-L93 using CSSTree's fork() syntax.
fork()
WIP as copied from the Svelte PR: https://stackblitz.com/edit/stackblitz-starters-umuh7n?file=index.js,csstree-fork.js,nodes%2Fcontainer-query.js,nodes%2Fquery-css-function.js,nodes%2Fquery-feature-range.js
No branches or pull requests
From Adam Argyle's CodePen:
I'd expect
base
to be a layer name, but currently no layers are reported. The same goes forsupports()
queries.CSSTree issue: csstree/csstree#259
The text was updated successfully, but these errors were encountered: