Skip to content

Relative color channels with calc() do not handle correctly #87

@asamuzaK

Description

@asamuzaK

If relative color channels have calc() function and that calc() function contains values ​​with units or percentages, the color channels will not be handled correctly.

Valid:

  • "rgb(from rebeccapurple calc(r * 2) g b)"
  • "rgb(from rebeccapurple calc(r * 50%) g b)"

Invalid: The current css-color treats these values ​​as valid.

  • "rgb(from rebeccapurple calc(r * 2rem) g b)"
  • "rgb(from rebeccapurple calc(r + 50%) g b)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions