Thankfully, unlike rounded corners, for the shadows and transforms there does seem to be agreement on a common syntax. -webkit-box-shadow Shadow Example -webkit-border-radius: 36px 12px; -moz-border-radius: 36px / 12px; border-radius: 36px As some people have pointed out these properties can be used not just for 'boxes' but for many other HTML objects including form elements. Note particularly the change in syntax and the effect of passing two values to -webkit-border-radius as compared to the -moz-border-radius example above. Previously only the 'nightly builds' contained this functionality In Opera the syntax for the corners is the same as in Safari, but the behaviour of border-radius with two values matches that More about the author
There is no pure-CSS solution for rounded corners in IE8 or other primitive browsers. Then there are various -webkit-transform option that can be used to create all kinds of wierd and wonderful shapes: -webkit-transform: rotate() Rotate Example -webkit-border-radius: 36px 12px; -moz-border-radius: 36px / 12px; border-radius: A slash has been introduced to separate the horizontal and vertical length settings. Using -webkit-border-radius in Safari (Webkit) The latest versions of Safari now support -webkit-border-radius. http://stackoverflow.com/questions/17202128/rounded-cornes-border-radius-safari-issue
Here are the CSS and browser-specific attributes in question: CSS3 Mozilla equivalent WebKit equivalent border-top-right-radius -moz-border-radius-topright -webkit-border-top-right-radius border-bottom-right-radius -moz-border-radius-bottomright -webkit-border-bottom-right-radius border-bottom-left-radius -moz-border-radius-bottomleft -webkit-border-bottom-left-radius border-top-left-radius -moz-border-radius-topleft -webkit-border-top-left-radius border-radius -moz-border-radius -webkit-border-radius Prior to Example 1 -moz-border-radius: 1em; Example 2 -moz-border-radius-topright: 2em; -moz-border-radius-topleft: 2em; Example 3 -moz-border-radius: 2em 0; Example 4 -moz-border-radius: 3em 1em; The Mozilla properties used here do not conform to the standard If two values are supplied then they become the horizontal and vertical radii for an elliptical corner. http://stackoverflow.com/questions/27279326/border-radius-not-working-in-safari Other special effects WebKit, Firefox and Opera now support a number of other CSS3 features, including the following simple effects and transforms.
Definition and syntax for border-radius As with many CSS properties relating to margins, padding and borders, there are four individual properties - one for each corner of a box element - CSS: border-radius and -moz-border-radius Tweet121 Shares9 Shares0 Tweets38 Comments One of the most keenly-anticipated CSS3 properties is border-radius. Safari Border Radius Overflow Hidden Stay tuned to the Surfin' Safari blog linked below for the latest exciting developments. Border Radius Overflow Hidden Not Working Just replace -webkit with -moz or -o, except for border-radius and box-shadow where Opera uses no prefix.
If a single value is supplied then that becomes the radius of a rounded corner. While Internet Explorer before IE9 doesn't support many (or any) advanced CSS properties, the Mozilla (Firefox and related browsers) and WebKit (Apple's web browser engine used in Safari and Chrome) and The 'Mozilla' versions however work perfectly well in Firefox and other Mozilla-based browsers and the 'WebKit' ones in Safari and Chrome as well as the iPhone/iPad. click site