Skip to content

Use of named colours in scatterGL is not case-insenstive #6685

Closed
@dsmmcken

Description

@dsmmcken

When using CSS colour names for a marker color, they should be case insensitive. I expected LemonChiffon to works as it is valid CSS3 colour, and works in svg, however a scatterGL trace renders it as black.

As usual for CSS-defined idents, all of these [color] keywords are ASCII case-insensitive.

A simple fix would be to apply a lowercase before setting colours in the scattergl code, though I am not entirely sure why this isn't working currently.

Codepen:
https://codepen.io/dsmmcken/pen/JjeambK

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions