You are here

CSS Paint API

The CSS Paint API allows web developers to generate an image programmatically whenever a CSS property is expecting an image. This allows them to use paint(myPainter) to reference a paint worklet rather than loading an image file or using CSS built-in functions like linear-gradient(). This API will soon be enabled by default in Chrome Stable.