For questions about the paint API introduced by CSS Houdini.
The CSS Painting API (a.k.a CSS paint API) gives web-developers access to the paint stage of CSS i.e, painting the background, content and highlight of CSS boxes.
This API introduces a new CSS function paint()
and relies on the use of a dedicated Worklet (PaintWorklet
) where the painting are registered and where the computation will be done. It also introduces a new Interface PaintRenderingContext2D
which borrows some methods from the CanvasRenderingContext2d API.