Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postprocessor: fallback opacity #16

Closed
iamvdo opened this issue Aug 19, 2014 · 2 comments
Closed

Postprocessor: fallback opacity #16

iamvdo opened this issue Aug 19, 2014 · 2 comments

Comments

@iamvdo
Copy link
Owner

iamvdo commented Aug 19, 2014

Add a fallback opacity for IE.

This

.e {
    opacity: .5;
}

has to be converted like so:

.e {
    opacity: .5;
    filter: alpha(opacity=50);
}

https://developer.mozilla.org/fr/docs/Web/CSS/opacity

@7studio
Copy link

7studio commented Aug 20, 2014

Vincent,
I think it is a very good idea. 👍

If you didn't edit your issue last night, I would have said you that IE8 seems to support the syntax filter: alpha(opacity=XX); 😉.

IMHO, this fallback should alert users when they use the property in the wrong way. According to this interesting answer, IE8 doesn't render opacity on pseudo-elements: Why does a filter gradient on a pseudo element not work in IE8?.
That could be interesting to throw an error in the case where this use is found.

What do you think about that?

@iamvdo
Copy link
Owner Author

iamvdo commented Aug 20, 2014

I opened this issue based on your suggestion. ;)

I don't really know if the we have to inform users about pseudo-elements/IE8 issue, I mean, not the fallback by itself... Maybe this could be a linter job?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants