{"ScriptPreparationCode":"var canvas = document.createElement(\u0027canvas\u0027);\r\nvar context = canvas.getContext(\u00272d\u0027);\r\n\r\nvar offscreenCanvas = new OffscreenCanvas(0, 0);\r\nvar offscreenContext = offscreenCanvas.getContext(\u00272d\u0027);","TestCases":[{"Name":"Canvas","Code":"context.measureText(\u0027M\u0027);","IsDeferred":false},{"Name":"Offscreen","Code":"offscreenContext.measureText(\u0027M\u0027);","IsDeferred":false},{"Name":"Canvas font","Code":"context.font = \u0027bold 48px serif\u0027;","IsDeferred":false},{"Name":"Offscreen font","Code":"offscreenContext.font = \u0027bold 48px serif\u0027;","IsDeferred":false},{"Name":"Canvas textBaseline","Code":"context.textBaseline = \u0022hanging\u0022;","IsDeferred":false},{"Name":"Offscreen textBaseline","Code":"offscreenContext.textBaseline = \u0022hanging\u0022;","IsDeferred":false},{"Name":"Canvas textAlign","Code":"context.textAlign = \u0022center\u0022;","IsDeferred":false},{"Name":"Offscreen textAlign","Code":"offscreenContext.textAlign = \u0022center\u0022;","IsDeferred":false}]}