{"ScriptPreparationCode":"var canvas = document.createElement(\u0027canvas\u0027);\r\nvar context = canvas.getContext(\u00272d\u0027, { alpha: false });\r\ncontext.font = \u0027bold 48px serif\u0027;\r\n\r\nvar offscreenCanvas = new OffscreenCanvas(0, 0);\r\nvar offscreenContext = offscreenCanvas.getContext(\u00272d\u0027, { alpha: false });\r\noffscreenContext.font = \u0027bold 48px serif\u0027;\r\n\r\nvar div = document.querySelector(\u0027div\u0027)","TestCases":[{"Name":"Canvas","Code":"context.measureText(\u0022TESTM\u0022).width","IsDeferred":false},{"Name":"OffscreenCanvas","Code":"offscreenContext.measureText(\u0022TESTM\u0022).width","IsDeferred":false},{"Name":"offsetWidth","Code":"div.textContent = \u0022TESTM\u0022\r\ndiv.offsetWidth","IsDeferred":false},{"Name":"getBoundingClientRect","Code":"div.textContent = \u0022TESTM\u0022\r\ndiv.getBoundingClientRect().width","IsDeferred":false}]}