How to allow for absolutely positioned element to disobey it's ancestor overflow: hidden and render outside it? The situation is complicated by the fact that there is a position: relative on the element between them in the ancestor hierarchy.
Here's a pen. In this situation how to allow red inner div to render at it's full height (300px), rather than being limited by outermost parent's 150px. I cannot remove overflow: hidden from the element - I'm using it to implement a collapsing panel. I also cannot move position: relative to one of outermost element's parents - it must stay at outer element.
Remove
overflow:hiddenfrom the.outermostand create another element inside it with these rules:overflow:hidden; height:100%; width:100%; position:absolute; top:0; left:0;and put everything else inside it and they won't get overflown.