This package provides 2 ways of making Element set rgba background values in a cross browser fasion:
The 2 packages come in seperate files, so you can choose to use only the setRGBA method.
el.setRGBA(1,230,25,0.75);
el.setStyle('background','rgba(1,2,3,0.5)'); el.setStyle('background-color','rgba(2,340,5,0.88)'); el.getStyle('background-color'); //rgba(2,340,5,0.88)
if (Browser.Features.rgba) doSomthing();
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus