8000 [css-color-5] Clarification on how `channel keywords` with multiple specified types work · Issue #7876 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-color-5] Clarification on how channel keywords with multiple specified types work #7876

@weinig

Description

@weinig

In the relative color syntax section of CSS Color 5, some of the channel keywords specify more than one type. For instance, the channel color l for the lab() relative color syntax states:

(http://w3c.github.io/csswg-drafts/css-color-5/##valdef-lab-l)

I am unclear on what this means with respect to using l in a calc() expression. For instance, in the following contrived case:

lab(from purple calc(l + 2) a b / 100%)

should I be interpreting l as a <percentage> or a <number>? (or am I missing something fundamental about calc that makes this not an issue?)

Edit: linked to stable drafts, and corrected to CSS Color 5, not 4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0