fails on using gradient with rgb colors #6

Open
opened 2016-02-11 14:09:54 +00:00 by vineet-amuratech · 0 comments
vineet-amuratech commented 2016-02-11 14:09:54 +00:00 (Migrated from github.com)

orientation - right
color-stops - 2

GradientParser.parse('-webkit-linear-gradient(right , rgb(248, 6, 234) 71% , rgb(202, 74, 208) 78%)')

gives
orientation - null
color-stops - 3

[{"type":"linear-gradient","colorStops":[{"type":"literal","value":"right"},{"type":"rgb","value":["248","6","234"],"length":{"type":"%","value":"71"}},{"type":"rgb","value":["202","74","208"],"length":{"type":"%","value":"78"}}]}]
orientation - right color-stops - 2 ``` javascript GradientParser.parse('-webkit-linear-gradient(right , rgb(248, 6, 234) 71% , rgb(202, 74, 208) 78%)') ``` **gives** orientation - null color-stops - 3 ``` javascript [{"type":"linear-gradient","colorStops":[{"type":"literal","value":"right"},{"type":"rgb","value":["248","6","234"],"length":{"type":"%","value":"71"}},{"type":"rgb","value":["202","74","208"],"length":{"type":"%","value":"78"}}]}] ```
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#6
No description provided.