The CSS Painting API — part of the CSS Houdini umbrella of APIs — allows developers to write JavaScript functions that can draw directly into an element's background, border, or content....allowing developers to create custom values for paint() , a CSS...background-image to set complex custom backgrounds on an element....