Even with a rounded parent element, the hidden part of a child element continues to appear in Chrome:
In Internet Explorer, adding the CSS property z-index
to the parent element can solve this issue. However, this solution does not work in Chrome.
#container {
width: 200px;
height: 200px;
border-radius: 50%;
background-color: orange;
position: fixed;
overflow: hidden;
/*z-index: 1;*/
}
#element {
width: 100px;
height: 100px;
background-color: blue;
position: absolute;
top: 150px;
left: 100px;
cursor: pointer;
}
<div id="container">
<div id="element"></div>
</div>