Error handling pseudo page selectors #25

Closed
opened 2026-03-11 09:59:20 +01:00 by SirPepe · 1 comment
SirPepe commented 2026-03-11 09:59:20 +01:00 (Migrated from github.com)

Input:

@page :left {
  margin: 2in 3in;
}

Result:

StyleSheet(AtRule(AtKeyword,⚠),RuleSet(PseudoClassSelector(":",PseudoClassName),Block("{",Declaration(PropertyName,":",NumberLiteral(Unit),NumberLiteral(Unit)),";","}")))
[Input:](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/:left) ```css @page :left { margin: 2in 3in; } ``` Result: ``` StyleSheet(AtRule(AtKeyword,⚠),RuleSet(PseudoClassSelector(":",PseudoClassName),Block("{",Declaration(PropertyName,":",NumberLiteral(Unit),NumberLiteral(Unit)),";","}"))) ```
marijnh commented 2026-03-11 10:09:36 +01:00 (Migrated from github.com)

This patch should help.

This patch should help.
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#25
No description provided.