Skip to content

[css-color-5] comma-separated syntax clarification #4738

@jonathantneal

Description

@jonathantneal

First, thank you so much to everyone continually imagining these color functions for CSS. ❤️

Would you help me understand the syntax for color-adjust()?

color-adjust() = color-adjust( <color> [ [=color-functions|color-function=] <colorspace>? ]?] )
  1. What does the U+003D EQUALS SIGN (=) mean in this syntax?

  2. Will color-adjust() receive a comma-separated list of values, as seen in Example 8?

color-adjust(peru, lightness(-20%));
  1. Would the answers these questions also apply to color-mix() and color-contrast()?

Additional Background: Based on that comma-separated example, I may have expected [=color-functions|color-function=] to instead read as <color-function># (syntax reference). I would love the opportunity to better understand these syntax definition things in general.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions