OffscreenCanvas allows canvas drawing to occur with no connection to the DOM and can be used inside workers.