Open tristen opened 6 years ago
this appears to be a bug with our csscolorparser dependency – it only validates the number of arguments passed to the color types are valid, just that there are the correct number of args
we have a PR open to change our color parser to d3 #6409 so that might fix this issue but its unclear if it will be merged. I'll ticket in the upstream repo.
errr looks like our current css parser hasn't been touched in 2 years 😬
oooo yeah. I recently swapped parsing in react-colorpickr out for color-string
which has been working well so far!
import colorString from 'color-string'
colorString.get('hsl(0, 0, 0');
// null
It looks like invalid color values are passing validation!
mapbox-gl-style-spec version:
11.1.1
Steps to Trigger Behavior
Expected Behavior
An entry in the error array indicating the color value did not pass validation.
Actual Behavior
An empty error array returns resulting in no error found.