-
-
Notifications
You must be signed in to change notification settings - Fork 795
Closed
Closed
Copy link
Labels
A-ParserArea: parserArea: parserL-CSSLanguage: CSSLanguage: CSSS-Bug-confirmedStatus: report has been confirmed as a valid bugStatus: report has been confirmed as a valid bugS-Needs discussionStatus: needs a discussion to understand criteriaStatus: needs a discussion to understand criteria
Description
Environment information
playground
Description
The CSS parser does not support the prefix() syntax when used with @import statements in Tailwind CSS v4.
Related to #7854
Examples
@import "tailwindcss/theme.css" layer(theme) prefix(tw);
@import "tailwindcss/utilities.css" prefix(tw) layer(utilities);Questions to address
- Does the order of
layerandprefixmatter? - How does it interact with
supports()?
References
- Tailwind CSS documentation: https://tailwindcss.com/docs/preflight#disabling-preflight
- CSS Cascade spec: https://drafts.csswg.org/css-cascade/#at-import
- Original issue: 🐛 CSS parser with
tailwindDirectivesdoes not parse@source inline();#7854 - Comment requesting this issue: 🐛 CSS parser with
tailwindDirectivesdoes not parse@source inline();#7854 (comment)
Virakal, mmikhan and EthanShoeDev
Metadata
Metadata
Assignees
Labels
A-ParserArea: parserArea: parserL-CSSLanguage: CSSLanguage: CSSS-Bug-confirmedStatus: report has been confirmed as a valid bugStatus: report has been confirmed as a valid bugS-Needs discussionStatus: needs a discussion to understand criteriaStatus: needs a discussion to understand criteria