Tokenizing grid property with line names are interpreted incorrectly #10

Closed
opened 2023-12-29 14:32:45 +01:00 by ergunsh · 4 comments
ergunsh commented 2023-12-29 14:32:45 +01:00 (Migrated from github.com)

Hey @marijnh,

It seems like tokenizing this not working correctly:

* {
    grid: [linename1] "a" 100px [linename2];
}

The property declaration is resolved to be a RuleSet instead of a Declaration.

Can you take a look please? :)

Hey @marijnh, It seems like tokenizing this not working correctly: ```css * { grid: [linename1] "a" 100px [linename2]; } ``` The property declaration is resolved to be a `RuleSet` instead of a `Declaration`. Can you take a look please? :)
marijnh commented 2023-12-29 16:03:32 +01:00 (Migrated from github.com)

What is that [linename1] syntax? Is that CSS, some extension, or just a placeholder in your example?

What is that `[linename1]` syntax? Is that CSS, some extension, or just a placeholder in your example?
tophf commented 2023-12-29 16:53:06 +01:00 (Migrated from github.com)
It's CSS syntax: https://drafts.csswg.org/css-grid/#typedef-line-names
marijnh commented 2024-01-01 15:19:42 +01:00 (Migrated from github.com)

That wasn't part of our CSS parser yet. Can you check if the attached patch helps with this?

That wasn't part of our CSS parser yet. Can you check if the attached patch helps with this?
ergunsh commented 2024-01-03 14:01:48 +01:00 (Migrated from github.com)

Yep, this solves our issue; thanks! :)

Yep, this solves our issue; thanks! :)
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#10
No description provided.