What I have:
A block element with a fixed size but dynamic content size and overflow: scroll; .
What I want:
A transparent layer is above the content, so no matter how far the parent layer scrolls, the layer covers the content.
What I tried:
.layer { position: relative; width: 100%; height: 100%; bottom: 100%; z-index: 20; }
inside the parent after the content.
Problem:
The layer correctly covers the parent, but as soon as I scroll it, it does not extend to the content.
Violin:
http://jsfiddle.net/wYgWh/2/
Red should cover everything, but not too much;
Nikom source share