Fails on radial gradient when position is provided without shape and extent #10

Open
opened 2019-09-24 03:54:03 +00:00 by HotpotDesign · 0 comments
HotpotDesign commented 2019-09-24 03:54:03 +00:00 (Migrated from github.com)

Properly parsing CSS gradients is such a thorny problem. This is an awesome parser. Thanks so much for writing it!

Here's one gradient where the parser chokes:

radial-gradient(at 57% 50%, rgb(102, 126, 234) 0%, rgb(118, 75, 162) 100%)

In Chrome, the default values for shape and extent are sometimes omitted.

Properly parsing CSS gradients is such a thorny problem. This is an awesome parser. Thanks so much for writing it! Here's one gradient where the parser chokes: `radial-gradient(at 57% 50%, rgb(102, 126, 234) 0%, rgb(118, 75, 162) 100%)` In Chrome, the default values for shape and extent are sometimes omitted.
Sign in to join this conversation.
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: rafaelcaricio/gradient-parser#10
No description provided.