parent element and still not working.
let parent = document.querySelector('.sticky').parentElement; while (parent) { const hasOverflow = getComputedStyle(parent).overflow; if (hasOverflow !== 'visible') { console.info(hasOverflow, parent); } parent = parent.parentElement; }
Обсуждают сегодня