71 points · by cleverjake · 14y ago · 44 comments
Dear browser makers, please, enable your prefixed CSS properties only in dev/night/beta builds. Leave only unprefixed CSS properties in the release stable browsers. With this you will be able to test new features, show them to web developers and, at the same time, save them from the madness of maintaining five different slightly different versions of new CSS properties. How many developers do you think will not remove the `-moz-` prefixes from they CSS? Who do you expect to say "from now on we will only support Firefox 16, let's drop the prefixed version used by older versions"?
Prefixes are for testing, not for stable applications.
[1] http://hsivonen.iki.fi/vendor-prefixes/ (see "Keep Experimental Features in Experimental Builds")
[2] https://groups.google.com/d/msg/mozilla.dev.platform/itl6mtx... (dbaron is Mozilla's representative to the W3C Advisory Committee as well being a principal engineer on the layout team and deeply involved in the development of CSS over the past decade.)
The CSS Working Group has agreed to give the go-ahead to browser implementers to unprefix CSS3 Transitions, Transforms, and Animations:
http://lists.w3.org/Archives/Public/www-style/2012Jun/0105.html
So contrary to your comments, they're doing this because the W3 said that it's time to do so.My point is that support for prefixed CSS properties should not be available in stable releases at all.
What they should have done from the beginning (and from other comments seems it will be done in the future) is to enable experimental prefixed CSS properties only in dev builds (to demonstrate to the W3C working group the feasibility of those new properties) and remove such properties from stable releases. In this way the stable releases will have _only_ W3C approved prefixes, not the current mess of draft + CR + TR support.
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.
that's why Mozilla is unprefixing IMO.
But yep, so much for standards.