Should I feel bad about leaving out the -khtml-
prefix from css attributes like border-radius
and box-shadow
?
What is the percentage of Konqueror users anyway?
Short Answer. Specifically for box-shadow and border-radius , probably not. You only need them if: It's a rare situation where the square-corner or no-shadow fallback hurts the experience.
There is no need in -webkit- prefix for gradients in Chrome and Safari. Only older Android browsers still need it.
CSS prefixes -webkit- (Chrome, Safari, newer versions of Opera and Edge, almost all iOS browsers including Firefox for iOS; basically, any WebKit or Chromium-based browser) -moz- (Firefox) -o- (old pre-WebKit versions of Opera) -ms- (Internet Explorer and Microsoft Edge, before Chromium)
KHTML is the HTML layout engine developed by the KDE project. It is the engine used by the Konqueror web browser. A forked version of KHTML called WebKit is used by several web browsers, among them Safari and Google Chrome. Distributed under the terms of the GNU Lesser General Public License, KHTML is free software.
Necessity of khtml
Basically khtml is a prefix for the Konqueror browser
But now days, it is not required to the use of this prefix, because the Konqueror latest browsers understand the the css
for e.g. -khtml-property_name: value
If the browser does not even show in your stats and your "other" browser listing isn't 30% or something significant, I think you can safely leave it out.
(And "other" is so low on StatsCounter that it barely registers. http://gs.statcounter.com/)
Personally I include it just to be sure that I'm covering everything, but honestly I don't think it ever gets used. I wouldn't worry about it if you don't want to, but I try and be as cross-browser compatible as I can. You can also use something like Curvey Corners (google it) which (I think) just lets you put border-radius
and does all the other stuff for you using JS, and on top of that, adds support for border-radius to browsers that don't natively support it. There are similar things out there for other CSS3 stuff, but that's really the only one I use.
I just can't wait for CSS3 to be widespread so we can use it without having to worry about all these useless prefixes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With