You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: Color validator rejects CSS color formats that plotly.js accepts #5867
The ColorValidator docstring says all CSS4 color formats are supported, but several color strings that plotly.js parses and renders are rejected on the Python side, for example lab(50% -40 59.5), oklab(0.6 0.1 -0.05), color(srgb 1 0 0), hsl(0.5turn 60% 40%), hsl(-30, 50%, 50%), rgb(1e2, 0, 0), rgb(255 0 0 / none) and transparent.
The regex only allows unsigned numbers, deg as the only angle unit, no none, and only a limited form of color(). plotly.js 4 parses colors with culori, which accepts all of the above.
Activity
KoolADE85 commentedon Nov 4, 2026
Thanks for the report! Since you opened #5868, our team will review that and follow up.