Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The OffscreenCanvas.getContext()
method returns a drawing context for an offscreen canvas, or null
if the context identifier is not supported.
Note: This API is currently implemented for WebGL1 and WebGL2 contexts only. See bug 801176 for Canvas 2D API support from workers.