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

Convert rgba with no transparency to rgb #122

Closed
ionian-wind opened this issue Apr 9, 2013 · 3 comments
Closed

Convert rgba with no transparency to rgb #122

ionian-wind opened this issue Apr 9, 2013 · 3 comments

Comments

@ionian-wind
Copy link

What I have:

rgba(255,255,255,1)

What I've got:

rgba(255,255,255,1)

What I want:

rgb(255,255,255)
@kizu
Copy link

kizu commented Apr 10, 2013

That's not a safe conversion in itself, it could be used like this:

.foo {
    color: red;
    color: rgba(255,255,255,1);
}

if someone would like to use it as a hack to provide different colors to different browsers. I didn't see anyone do this, it still could be possible.

However, in some places it could be minified properly, like in gradients, CSS3 properties and in similar places.

Ah, and rgba(255,255,255,1) would be minified to #FFF :)

@lahmatiy
Copy link
Member

I believe nobody use it as a hack. Only very old browsers don't support for rgba. And better use some other more universal hacks for those browsers.

@lahmatiy
Copy link
Member

Now csso converts rgba(255,255,255,1) to #fff.

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

No branches or pull requests

3 participants