I'm only seeing this issue in Safari (6.1 os x)
When a parent element is set to position:fixed; overflow:hidden
and a child element is set to position:fixed
and part of it overflows the parent, it gets cut off.
Check out this jsfiddle in Chrome and Safari to see what I mean: http://jsfiddle.net/y2dg65y7/3/
<div class="wrapper">
<div class="inner">
Why is cut off in Safari?
</div>
</div>
.wrapper {
position: fixed;
overflow: hidden;
width: 200px;
height: 400px;
background-color: red;
}
.inner {
position: fixed;
top: 50px;
left: 40px;
width: 400px;
height: 200px;
padding: 20px;
background-color: silver;
}
Is this a bug in Safari? Any ideas? Workarounds?
position
but that depends on what you are trying to achieve. – Inceptive