ARTICLE AD BOX
I have a CSS @property that uses <image> syntax - want the option to set it to URLs or gradients.
However, initial-value errors:

This results in the rule being ignored.
Here is a sample, note that the syntax: "<color>" property works and falls back to the initial value, while syntax: "<image>" fails:
I've tried using RGB colours, image() and url() CSS functions, nothing seems to be a valid initial value for <image>.
How do I correctly declare this CSS @property with the <image> syntax?
157k82 gold badges315 silver badges454 bronze badges
A color is not an image. If you want a color to be an image make it a gradient with one color (a gradient is an image)
282k31 gold badges384 silver badges510 bronze badges
Explore related questions
See similar questions with these tags.
