Skip to content

[css-images-4] [css-color-5] - [color-interpolation-method] should allow custom idents #7377

@argyleink

Description

@argyleink

Given Color 5 allows loading of custom color profiles, those loaded spaces should be available to use in CSS Images 4 with gradients like:

@color-profile --myspace {
  src: url(https://myspace.colors/imaginary-path.icc);
}

.card {
  color: color(--myspace 200 50 50);
  background: linear-gradient(to bottom right in --myspace, 
    color(--myspace 200 50 50), 
    color(--myspace 100 50 50)
  );
}

or even

.card {
  background: linear-gradient(in --myspace, lime, blue);
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions