Here is a fixed div inside another fixed div with overflow auto. The child div overflow the parent but should remain visible because it's fixed, right?
The most strange part is that if I remove the content of the parent div so that it is not actually scrollable, then the overflowing div becomes visible...
I got this behaviour with chrome 47 and Safari 9.0.3. On Firefox, the inner div remains fully visible.
Here is the demo http://liveweave.com/c6pFAu
#a {
background: red;
position: fixed;
width: 100px;
height: 100px;
overflow: auto;
}
#b {
background: blue;
position: fixed;
width: 100px;
height: 100px;
top: 50px;
left: 50px;
}
<div id="a">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vitae quaerat facilis et quas laudantium quisquam aliquam ducimus blanditiis
<div id="b">
</div>
</div>
So, is that a bug or did I miss some weird spec?