CSS paint api allows to programmatically generate an image via css. The author can create their own paint worklet which is written in javascript and that code can be used with background-image: paint(checkerboard). The css paint api is still an evolving technology and google chrome is leading the pack among the browser. https://ishoudinireadyyet.com/