6 ms·
Webkit now supports W3/Mozilla style CSS gradients
- rmc 16y agoThis links to a detailed and technical bug report. Does anyone have any examples of this new CSS gradient goodness?
- masklinn 16y agohttps://developer.mozilla.org/en/Using_gradients https://developer.mozilla.org/en/Using_gradients Has example images and should work on browsers using a recent Gecko (FF >=3.6) The W3C spec has more thorough explanations and some more examples: http://dev.w3.org/csswg/css3-images/#gradients http://dev.w3.org/csswg/css3-images/#gradients
- robin_reala 16y agoTo be honest, there’s nothing much in the new syntax that you can’t do with the (original) Webkit syntax; this just brings it in line with the proposed syntax from the W3 that Mozilla originally came up with. Hopefully now Opera and MS will implement the proposed syntax as well.
- retlehs 16y agohttp://peter.sh/2011/01/gradients-two-new-range-based-css-selectors-and-background-extensions/ http://peter.sh/2011/01/gradients-two-new-range-based-css-se...
- tiles 16y agoFor a comparison between the two syntaxes, see this article: http://www.broken-links.com/2009/11/26/css-gradient-syntax-comparison-of-mozilla-and-webkit/ http://www.broken-links.com/2009/11/26/css-gradient-syntax-c... http://www.broken-links.com/2009/11/30/css-gradient-syntax-comparison-of-mozilla-and-webkit-part-2/ http://www.broken-links.com/2009/11/30/css-gradient-syntax-c...
- splatcollision 16y agoThis is great news. I have to rewrite a ton of my gradient drawing code, but it will be good not to have to write different code paths for generating and parsing different syntaxes.
- robin_reala 16y agoThis bug doesn’t remove the existing syntax, so a rewrite isn’t imperative. Nice not to have different code paths going forwards though, yep.