<container-name> in @container syntax breaks #27

Closed
opened 2026-03-11 10:19:19 +01:00 by SirPepe · 2 comments
SirPepe commented 2026-03-11 10:19:19 +01:00 (Migrated from github.com)

Input:

@container tall (height > 30rem) {}

Result:

StyleSheet(AtRule(AtKeyword,BinaryQuery(KeywordQuery,⚠,ComparisonQuery("(",FeatureName,CompareOp,NumberLiteral(Unit),")")),Block("{","}")))
Input: ```css @container tall (height > 30rem) {} ``` Result: ``` StyleSheet(AtRule(AtKeyword,BinaryQuery(KeywordQuery,⚠,ComparisonQuery("(",FeatureName,CompareOp,NumberLiteral(Unit),")")),Block("{","}"))) ```
marijnh commented 2026-03-11 10:38:48 +01:00 (Migrated from github.com)

See attached patch.

See attached patch.
SirPepe commented 2026-03-11 10:41:04 +01:00 (Migrated from github.com)

Awesome, thank you! I'm done with CSS for the day; you can push out a new release 🙃

Awesome, thank you! I'm done with CSS for the day; you can push out a new release 🙃
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lezer/css#27
No description provided.