-
Notifications
You must be signed in to change notification settings - Fork 756
Closed
Labels
css-color-4Current WorkCurrent Work
Description
Currently, the color() function when used with a color profile accepts either numeric parameters or string parameters. The latter is for use with named color profiles. These are not well supported (It took me quite a while to find an actual live example for testing), are not allowed in PDF (for CSS to PDF generators) and, for the simple use case of expressing a palette of named colors, CSS Custom Properties aka CSS Variables are an easier and more CSS-like way to produce that palette.
So this is a proposal to remove them from the spec:
- the
color()property would be simplified, the whole part about string parameters would be removed - the
@color-profilewould not be allowed to link to them (related discussion at [css-color] profiled colors can be device-independent #6024 (comment))
Instead I would add an example of using CSS Custom properties to specify a palette of colors.
Metadata
Metadata
Assignees
Labels
css-color-4Current WorkCurrent Work