Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is the khtml prefix necessary?

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?

like image 447
Web_Designer Avatar asked Jun 25 '11 04:06

Web_Designer


People also ask

Does Box Shadow need prefixes?

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.

Is WebKit needed anymore?

There is no need in -webkit- prefix for gradients in Chrome and Safari. Only older Android browsers still need it.

Which prefix do you need to get css3 properties to work on older Firefox browser?

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)

What is CSS Khtml?

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.


3 Answers

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

like image 146
Kamal Kumar Avatar answered Nov 02 '22 17:11

Kamal Kumar


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/)

like image 26
Jason Gennaro Avatar answered Nov 02 '22 17:11

Jason Gennaro


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.

like image 29
JacobTheDev Avatar answered Nov 02 '22 18:11

JacobTheDev