live demo: http://codepen.io/flanker/pen/ajAow
There are three elements:
<div class="parent"> <div class="child"></div> </div>
The first parent has border-radius , and the child will overflow. In the second, the parent has border-radius and overflow: hidden , so the child is cropped. Both of them work great.
But in the third, the parent element has border-radius and overflow: hidden . This time I added an animation element to a child element, then overflow: hidden does not work in Chrome (version 28.0.1500.52 beta / Mac OS X 10.8.3). The child will still be visible from the parent.
But it works fine in Firefox (20.0)
Is this a Chrome bug? Or am I missing any other CSS properties?
Thanks.
flanker
source share