wut
{"ScriptPreparationCode":"let box = document.getElementById(\u0027box\u0027);","TestCases":[{"Name":"Offsets only","Code":"console.log(\u0027In DOM and visible: \u0027 \u002B (!!(box.offsetHeight || box.offsetWidth || box.offsetTop || box.offsetLeft || box.offsetParent) ? \u0027true\u0027 : \u0027false\u0027));","IsDeferred":false},{"Name":"ComputedStyle only","Code":"let style = getComputedStyle(box);\r\nconsole.log(\u0027Visible: \u0027 \u002B (style[\u0027display\u0027] !== \u0027none\u0027 \u0026\u0026 style[\u0027visibility\u0027] !== \u0027hidden\u0027 \u0026\u0026 style[\u0027opacity\u0027] \u003E 0.1 ? \u0027true\u0027 : \u0027false\u0027));","IsDeferred":false},{"Name":"Both","Code":"console.log(\u0027In DOM and visible: \u0027 \u002B (!!(box.offsetHeight || box.offsetWidth || box.offsetTop || box.offsetLeft || box.offsetParent) ? \u0027true\u0027 : \u0027false\u0027));\r\nlet style = getComputedStyle(box);\r\nconsole.log(\u0027Visible: \u0027 \u002B (style[\u0027display\u0027] !== \u0027none\u0027 \u0026\u0026 style[\u0027visibility\u0027] !== \u0027hidden\u0027 \u0026\u0026 style[\u0027opacity\u0027] \u003E 0.1 ? \u0027true\u0027 : \u0027false\u0027));","IsDeferred":false}]}