I want to create a box with the top left and top right corners rounded. My CSS:
border-radius: 4px 4px 0 0;
In Safari 6, border-radius creates some distortion/artifacts. The corners are 'rough' and mysterious vertical white lines (box bg is blue) appear.
I've tried everything (-webkit-border-radius, border-top-left-radius, border-top-right-radius, border-style:none, border-width:0, border-color:transparent, etc) but this seems to be the only thing that doesn't break:
border-radius: 4px;
- Is this a webkit bug? (Chrome has the corner artifacts, but no others)
- If not, how can I round just the top left and right corners without running into these problems?
- I am using a 2012 MacBook Air, OSX Mountain Lion (10.8), Safari 6.0.1, Chrome 22.0.1229.94