Stylecow plugin to add ms filters emulating the rgba/hsla colors in backgrounds in explorer < 9 using ms filters.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

stylecow plugin msfilter-background-alpha

Build Status

Stylecow plugin to add ms filters emulating the rgba/hsla colors in backgrounds in explorer < 9 using ms filters. More info: http://css-tricks.com/rgba-browser-support/

You write:

body {
	background: rgba(0, 0, 0, 0.2);
}

And stylecow converts to:

body {
	background: rgba(0, 0, 0, 0.2);
	-ms-filter: 'progid:DXImageTransform.Microsoft.gradient(startColorStr="#33000000", endColorStr="#33000000")';
}

More demos in the tests folder