Skip to content

[css-color-6] color-contrast() syntax is confusing #7354

@manuelmeister

Description

@manuelmeister

Why do we use vs and not just something like this:

color-contrast() = color-contrast( <color> [ , <color>#{2,}  [ , to [<number> | AA | AA-large | AAA | AAA-large]]? ]? )

Because for me, the following looks like only maroon is tested to AA and only wheat and bisque are compared.

color-contrast(wheat vs bisque, darkgoldenrod, olive, sienna, darkgreen, maroon to AA)

I think this would be much more readable:

color-contrast(wheat, bisque darkgoldenrod olive sienna darkgreen maroon, to AA)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Tuesday

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions