Lorem ipsum dolor sit amet
{"ScriptPreparationCode":"function getLocalDOMRect(el) {\r\n let offsetTop = 0;\r\n let offsetLeft = 0;\r\n const width = el.offsetWidth;\r\n const height = el.offsetHeight;\r\n while (el instanceof HTMLElement) {\r\n offsetTop \u002B= el.offsetTop;\r\n offsetLeft \u002B= el.offsetLeft;\r\n el = el.offsetParent;\r\n }\r\n\r\n return new DOMRect(offsetLeft, offsetTop, width, height);\r\n}\r\n\r\nconst el = document.getElementById(\u0022el\u0022);\r\n","TestCases":[{"Name":"getBoundingClientRect","Code":"const { left, right, top, bottom } = el.getBoundingClientRect();","IsDeferred":false},{"Name":"getLocalDOMRect","Code":"const { left, right, top, bottom } = getLocalDOMRect(el);","IsDeferred":false}]}