mootools / mootools-core

MooTools Core Repository
https://mootools.net
2.65k stars 508 forks source link

Fx.Tween and RGBA /HSL Color does not work #2210

Open ibolmo opened 12 years ago

ibolmo commented 12 years ago

(from Lighthouse)

See this Demo:

http://jsfiddle.net/SunboX/ExXK4/


(From comment) Why are we supporting hsb instead of hsl? Shouldn't we be supporting what is supported in css3? I have code that works, and has been in production use, if you're interested.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/55949-fx-tween-and-rgba-hsl-color-does-not-work?utm_campaign=plugin&utm_content=tracker%2F22067&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F22067&utm_medium=issues&utm_source=github).
GCheung55 commented 12 years ago

I was hunting this one down. I've only narrowed it down to the Fx.CSS.Parsers. https://github.com/mootools/mootools-core/blob/master/Source/Fx/Fx.CSS.js#L111

ibolmo commented 12 years ago

Yeah the Fx.CSS.Parser.Color is lacking parsing of rgba values. Moving this to 1.5 for considerations.

We could use Color.js (currently at More) to manage (parsing and encoding) of the color. That should support hsl, hsb, rgb, rgba etc.