← Back to release summary

CSS <image> Syntax for registered Custom Properties

Category
CSS
Type
Chromium catches up
Status
Enabled by default (Chrome 120)
Intent stage
None

WPT details: https://wpt.fyi/css/css-properties-values-api/at-property.html https://wpt.fyi/css/css-properties-values-api/register-property-syntax-parsing.html https://wpt.fyi/css/css-properties-values-api/typedom.html

Summary

Supports using the <image> syntax for custom properties registered with @property or registerProperty(). The <image> syntax can be used to restrict values of the custom property to url() values and generated images like gradients.

Standards & signals

Ecosystem

View on chromestatus.com