{"ScriptPreparationCode":"var canvas = document.createElement(\u0027canvas\u0027);\r\ncanvas.width = 100;\r\ncanvas.height = 100;\r\nvar context = canvas.getContext(\u00272d\u0027);\r\n\r\nvar offscreenCanvas = new OffscreenCanvas(100, 100);\r\nvar offscreenContext = offscreenCanvas.getContext(\u00272d\u0027);","TestCases":[{"Name":"Canvas","Code":"var gradient = context.createLinearGradient(0, 0, canvas.width, 0);\r\ngradient.addColorStop(0, \u0027red\u0027);\r\ngradient.addColorStop(1, \u0027blue\u0027);\r\ncontext.fillStyle = gradient;\r\ncontext.fillRect(0, 0, context.canvas.width, 1);","IsDeferred":false},{"Name":"offscreenCanvas","Code":"var gradient = offscreenContext.createLinearGradient(0, 0, offscreenCanvas.width, 0);\r\ngradient.addColorStop(0, \u0027red\u0027);\r\ngradient.addColorStop(1, \u0027blue\u0027);\r\noffscreenContext.fillStyle = gradient;\r\noffscreenContext.fillRect(0, 0, offscreenContext.canvas.width, 1);","IsDeferred":false}]}