Fiddle: http://jsfiddle.net/e8GR6/11/ (updated)
I have rounded the corners of a relatively positioned outer div
(which must remain realtively positioned - that is important). I have hidden the overflow of that div, so that the image
and inner div
contained within have their corners rounded as well.
Works great EXCEPT in Safari. View the above fiddle in anything but Safari and it looks great, view it in Safari and the inner div
doesn't have rounded corners. I have fixed the image
to have rounded corners by specifically rounding it's corners. However the inner div
will animate in the final site, so I can't just cut it's corners too. As far as I can tell, I need the overflow-hidden to work in Safari like it does in the other browsers, or I need an efficient work-around. Any ideas? jQuery is an option, but I prefer a non-javascript solution.
Solution: Looks like it is a bug in webkit. My solution will be to just fade the div out before it becomes noticeable, but for posterity: webkit.org/blog/181/css-masks. a webkit css mask would be able to knockout those pesky corners for me if fading wasn't a viable option.