forked from thoughtbot/bourbon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Corey Csuhta
authored and
Galen Frechette
committed
Jul 27, 2012
1 parent
42e727b
commit 5122d03
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@mixin image-rendering ($mode:optimizeQuality) { | ||
|
||
@if ($mode == optimizeQuality) or ($mode == bicubic) or ($mode == bilinear) { | ||
image-rendering: optimizeQuality; // Gecko, Presto, Webkit | ||
-ms-interpolation-mode: bicubic; | ||
} | ||
|
||
@else if ($mode == optimizeSpeed) or ($mode == nearest-neighbor) or ($mode == optimize-contrast) or ($mode == crisp-edges) { | ||
image-rendering: optimizeSpeed; // Old versions of Firefox/Gecko, Safari when optimize-contrast not supported | ||
image-rendering: -moz-crisp-edges; // Gecko in Firefox 6+ | ||
image-rendering: -o-crisp-edges; | ||
image-rendering: -webkit-optimize-contrast; // Safari/Webkit nightlies | ||
-ms-interpolation-mode: nearest-neighbor; | ||
image-rendering: optimize-contrast; // As per spec | ||
} | ||
|
||
} |