I am trying to have a position: absolute
element fill its parent, even if the parent is scrollable.
To demonstrate this issue, I created a codepen example.
Although the red overlay fills the div initially, it does not stay overlaid when the content is scrolled. Is there a way to make sure it fully overlays the parent even when scrolled?