Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Feature: rgba backgrounds through progid:DXImageTransform.Microsoft.gradient #13

Closed
gordonbrander opened this issue May 28, 2010 · 2 comments

Comments

@gordonbrander
Copy link

Might be related to http://github.com/lojjic/PIE/issues/#issue/7.

It would be great to have support for RGBA backgrounds.

RGBA background colors can be approximated in IE through the progid:DXImageTransform.Microsoft.gradient filter. If you give the startColorStr and endColorStr a hex value with 8 places, the first two will define opacity (a live demo can be seen at http://CSS3please.com).

@lojjic
Copy link
Owner

lojjic commented May 28, 2010

Gordon, thanks for reporting! You have the honor of being the first to open a ticket. :)

I assume you're talking about rgba for solid background-colors. Actually PIE should already support this, as long as you're using the -pie-background property (it won't work in the standard background property because IE doesn't give access to values of standard properties it doesn't know how to parse). I'll double-check when I get a chance this weekend, but if you have a testcase that would be great.

(Hmm... just noticed GitHub's issue tracker doesn't allow attachments... any ideas on tracking testcases, screenshots, etc. with tickets?)

FWIW, using the progid:DXImageTransform.Microsoft.gradient filter shouldn't be necessary, because PIE renders the background using VML which allows opacity on the fill as a native attribute.

@gordonbrander
Copy link
Author

Aha! Makes total sense. Sorry for the bogus report.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants