Skip to content

Commit

Permalink
Avoid smooth resampling
Browse files Browse the repository at this point in the history
  • Loading branch information
scottschiller committed Apr 13, 2015
1 parent 7274a87 commit b5bcd5b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions css/survivor.css
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,22 @@ body.show-help #world-container {
width: 0px;
height: 0px;
_background: #000;
/**
* avoid smooth image resizing, keep things pixelated - more true to the original.
* Firefox does a great job here; Safari is OK (though not pixel-sharp.)
* Chrome + Safari may be worse when using -webkit-optimize-contrast vs. default.
* https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering
*/
/*
image-rendering: -webkit-optimize-contrast;
*/
image-rendering: crisp-edges;
image-rendering: optimizeQuality;
image-rendering: pixelated;
/* non-standard, but quite nice under Firefox */
image-rendering: -moz-crisp-edges;
/* who knows, for IE */
-ms-interpolation-mode: nearest-neighbor;
}

.space {
Expand Down

0 comments on commit b5bcd5b

Please sign in to comment.