Issue with "space" followed by universal selector "*". #21

Closed
opened 2025-05-15 15:31:08 +02:00 by christophsanz · 1 comment
christophsanz commented 2025-05-15 15:31:08 +02:00 (Migrated from github.com)

Any CSS with a space followed by a "*" causes the parser to error right at the space.

Example CSS:

.any-class-or-selector * {
    --variable: blue;
}

This is the output of tree.iterate logging the node.name on enter:

Image

As far as i know this should be valid CSS.

TIA for any Help!
Chris

Any CSS with a space followed by a "*" causes the parser to error right at the space. Example CSS: ```css .any-class-or-selector * { --variable: blue; } ``` This is the output of `tree.iterate` logging the `node.name` on enter: ![Image](https://github.com/user-attachments/assets/24105beb-7281-45eb-a832-a1c672ae7d87) As far as i know this should be valid CSS. TIA for any Help! Chris
marijnh commented 2025-05-15 15:46:51 +02:00 (Migrated from github.com)

Thanks for spotting that! Attached patch should help.

Thanks for spotting that! Attached 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#21
No description provided.