From f9cb4feb38b22007645a2af6c6eed1c8e48dba10 Mon Sep 17 00:00:00 2001 From: Udo Kramer Date: Sun, 12 May 2013 19:00:43 +0200 Subject: [PATCH] add min--moz-device-pixel-ratio to make @2x variants work in firefox --- lib/nib/image.styl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nib/image.styl b/lib/nib/image.styl index 7aeda332..7703680e 100644 --- a/lib/nib/image.styl +++ b/lib/nib/image.styl @@ -7,7 +7,7 @@ image(path, w = auto, h = auto) background-image: url(path) - @media all and (-webkit-min-device-pixel-ratio: 1.5) + @media all and (-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5) ext = extname(path) path = pathjoin(dirname(path), basename(path, ext) + '@2x' + ext) background-image: url(path)