Error handling @font-feature-values #26

Closed
opened 2026-03-11 10:04:32 +01:00 by SirPepe · 1 comment
SirPepe commented 2026-03-11 10:04:32 +01:00 (Migrated from github.com)

Input:

@font-feature-values Font Name {
  font-display: swap;
}

Result:

StyleSheet(AtRule(AtKeyword,KeywordQuery,⚠),RuleSet(TagSelector(TagName),Block("{",Declaration(PropertyName,":",ValueName),";","}")))
[Input:]() ```css @font-feature-values Font Name { font-display: swap; } ``` Result: ``` StyleSheet(AtRule(AtKeyword,KeywordQuery,⚠),RuleSet(TagSelector(TagName),Block("{",Declaration(PropertyName,":",ValueName),";","}"))) ```
marijnh commented 2026-03-11 10:18:02 +01:00 (Migrated from github.com)

So much fun how they keep reinventing new token structure for every type of @-notation. Attached patch should help here.

So much fun how they keep reinventing new token structure for every type of @-notation. Attached patch should help here.
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#26
No description provided.