I'm having trouble getting Chrome to respect the border radius for children.
Here's the setting:
<div class='wrapper'> <img id='sosumi' src='http://images.apple.com/safari/images/overview_hero.jpg' /> </div>
if the shell is a positioned element (for example, position: relative) and has a border radius, then the border radius will not apply to the content img.
it also should not be an image. any content filling the background.
Here is a sample page that shows the problem. View in Safari, Mobile Safari, Firefox or IE, and the corners of the image will be cropped to a round corner. When viewed in Chrome, the image overflows the corner (despite overflow: hidden css) and looks ugly.
Take a look: https://dl.dropbox.com/u/433436/no-rounding/index.html
Question: Is there any workaround for this that is not too crazy? Does anyone know why this affects one WebKit-based browser and not others? Perhaps this will appear in Chrome soon?
isaiah
source share