Skip to content

[css-color] Allow <angle> or <hue> in color()  #4489

Closed
@Crissov

Description

@Crissov

color() = color( [ <ident>? [ <number>+ | <string> ] [ / <alpha-value> ]? ]# , <color>? )

This allows either a named color or a tuple of unit-less numbers to identify or specify a color within a custom color space. Wouldnʼt it be useful to also support <percentage> (or <alpha-value> = <cmyk-component>) and <angle> (or <hue>) for custom color components since try are used in predefined color notations?

See #4477 for CIE lightness as a percentage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.css-color-4Current Work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions