In webkit browsers like Chrome, rounded corners do not properly cut off content when using position:relative;
Check out this demonstration.
Here is the HTML:
<div class="outer">
<div class="inner">
</div>
<div>
And here is the CSS:
.outer {
background:yellow;
border:solid 1px black;
position:relative;/* When set, rounded corners fail to contain content */
overflow:hidden;
-moz-border-radius: 12px;
border-radius: 12px;
}
.inner {
background:red;
height:50px;
}
If anyone knows of a solution, please share. Thank you!