I have a problem. I defined in my css
-webkit-border-radius: 5px;
But it doesn't works on IE. When I replaced by
border-radius: 5px
It works. But I don't understand difference between both...
Someone can explain me please?
-webkit
is a vendor prefix, which has historically been used by browser vendors to provide access to experimental or incomplete APIs. Before border-radius
was standardized, it was available in certain browsers (e.g. Safari, which uses the WebKit engine) via a vendor prefix.
Now that the standardized border-radius
property is widely supported, the vendor prefix is no longer necessary (unless you're targeting older browsers, such as Safari 4).
Because of Safari's early prominence in many APIs, non-WebKit browsers started supporting some -webkit
prefixed APIs (because, as in this case, the prefixed version was used without the standard version). Because of these kinds of compatibility issues, browser vendors have moved away from using vendor prefixes, and rely primarily on experimental flags when developing features.
It is a vendor prefix for Webkit based browsers like Safari and Chrome. When a new feature gets implemented by browsers they use these prefixes so users can already implement the features and when different browsers implement the feature differently, it won't matter because the final version of border-radius gets used by all the major browsers. The border-radius
version is the one that's supported by all the browsers these days.
Applications based on WebKit or Blink, such as Safari and Chrome, support a number of special WebKit extensions to CSS. Read more here