-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Support image-rendering #449
Comments
@magsout what you mean? What is bad in current workaround? What we should add to Autoprefixer? |
oops I deleted the beginning of my message If it were possible to add support for this property in autoprefixer |
Strange, Autoprefixer supports |
I found a problem. You need to set input: foo {
image-rendering: crisp-edges;
} |
We can also set this behaviour to |
thanks 👍 |
@yisibl @simevidas are you agree that we should have some prefixed values for |
@ai there are 3 values : See http://dev.w3.org/csswg/css-images-3/#the-image-rendering |
@ai The problem is that the 3 prefixed declarations: -ms-interpolation-mode: nearest-neighbor;
image-rendering: -moz-crisp-edges;
image-rendering: -webkit-optimize-contrast; behave like Maybe the state of implementations is too unstable for Autoprefixer. My current recommendation is to use a CSS utility class for the “preserve pixels” use case, anyway. |
@simevidas for example, Autoprefixer adds prefixes for flexbox even if specs has big difference. If But maybe we should not add prefixes for |
@ai Ah oh. All 3 prefixed declarations correspond to |
@simevidas so, what you think about this plan to 5.2:
Is there some case, when user will write |
Sounds good. I’ve checked Mozilla, Chromium, and WebKit bug trackers. The |
Good job! |
👍 thanks |
I don’t understand why this change (“1. Remove prefixes for |
Turns out what I was missing was this bug: #632. |
input.css
output.css
source : http://www.simevidas.com/2015/05/10/Blowing-up-pixel-art-on-the-Web.html and http://dev.w3.org/csswg/css-images-3/#the-image-rendering
The text was updated successfully, but these errors were encountered: