by TazeTSchnitzel · 14y ago · 0 comments
I can live without gradients, my life will go on.
background: -webkit-linear-gradient(#fff, #fdd 75%, #fcc);
background: -moz-linear-gradient(#fff, #fdd 75%, #fcc);
background: -ms-linear-gradient(#fff, #fdd 75%, #fcc);
background: -o-linear-gradient(#fff, #fdd 75%, #fcc);
background: linear-gradient(#fff, #fdd 75%, #fcc);
And this is used every time i have to set a gradient. I really wish there were some better options than prefixes. I am not surprised at all if developers move to supporting just webkit. This is a lot of work and maintaining. And without css variables, it is a mess to change a color. It is very tempting to just use the -webkit- version and probably a non prefixed one for future compatibility. 2 is far better than 5.Edit: And i should mention, this is not a mobile website, it's a desktop site.
background: -webkit-gradient(linear, 0 0, 0 100%, from(#fff) color-stop(75%, #fdd) to(#fcc));
(I hope I got that syntax right.) This one should go above webkit-linear-gradient.And it's also an example of why prefixes were invented - the syntax is totally different.
I think vendors should unprefix the moment their prefix matches the spec.
most of the time when all prefixed version are the same it means there isn't a CR for the spec, and it is therefore in flux. unprefixing it would mean sites would break if and when it is changed before reaching recommendation.
Many people including myself think prefixes should be eliminated entirely[1], or replaced with a single prefix for the experimental[2].
[1] http://paulirish.com/2012/vendor-prefixes-are-not-developer-...
[2] http://www.quirksmode.org/blog/archives/2010/03/css_vendor_p...
It's kind of an obsession really, to the point that I furiously try not to use any third party library unless absolutely needed. And I haven't needed one until now. And I have also yet to regret these decisions.
There is a proprietary filter property that works on previous versions IE.
that's why Mozilla is unprefixing IMO.
But yep, so much for standards.