Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[core] Return NONE for invalid color strings in Color::parse() #8075

@anandthakker

Description

@anandthakker

Color::parse (via CSSColorParser::parse()) defaults to black for invalid / unparseable color strings. This prevents us from correctly evaluating property functions for color values in the case where the property value is an invalid color string -- see mapbox/mapbox-gl-js#4150

Metadata

Metadata

Assignees

Labels

CoreThe cross-platform C++ core, aka mbglbug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions