File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 20
20
@import " css3/box-sizing" ;
21
21
@import " css3/columns" ;
22
22
@import " css3/flex-box" ;
23
+ @import " css3/image-rendering" ;
23
24
@import " css3/inline-block" ;
24
25
@import " css3/linear-gradient" ;
25
26
@import " css3/prefixer" ;
Original file line number Diff line number Diff line change
1
+ @mixin image-rendering ($mode: optimizeQuality) {
2
+
3
+ @if ($mode = = optimizeQuality) or ($mode = = bicubic) or ($mode = = bilinear) {
4
+ image-rendering : optimizeQuality; // Gecko, Presto, Webkit
5
+ -ms-interpolation-mode : bicubic;
6
+ }
7
+
8
+ @else if ($mode = = optimizeSpeed) or ($mode = = nearest- neighbor ) or ($mode = = optimize-contrast) or ($mode = = cris p- edges) {
9
+ image-rendering : optimizeSpeed; // Old versions of Firefox/Gecko, Safari when optimize-contrast not supported
10
+ image-rendering : -moz-crisp-edges; // Gecko in Firefox 6+
11
+ image-rendering : -o-crisp-edges;
12
+ image-rendering : -webkit-optimize-contrast; // Safari/Webkit nightlies
13
+ -ms-interpolation-mode : nearest-neighbor;
14
+ image-rendering : optimize-contrast; // As per spec
15
+ }
16
+
17
+ }
You can’t perform that action at this time.
0 commit comments