Permalink
Browse files

Fixes #828 Add 'x' unit for image-set (synonym to dppx).

  • Loading branch information...
1 parent b4c438d commit 7b0f1705efbdd7171c01cda247c7f614a9637b35 @tonistiigi tonistiigi committed Oct 23, 2012
Showing with 6 additions and 1 deletion.
  1. +1 −1 lib/units.js
  2. +3 −0 test/cases/units.css
  3. +2 −0 test/cases/units.styl
View
@@ -14,7 +14,7 @@ module.exports = [
, 'deg', 'grad', 'rad', 'turn' // angles
, 's', 'ms' // times
, 'Hz', 'kHz' // frequencies
- , 'dpi', 'dpcm', 'dppx' // resolutions
+ , 'dpi', 'dpcm', 'dppx', 'x' // resolutions
, '%' // percentage type
, 'fr' // grid-layout (http://www.w3.org/TR/css3-grid-layout/)
];
View
@@ -0,0 +1,3 @@
+body {
+ background-image: image-set(url("img.png") 1x);
+}
View
@@ -0,0 +1,2 @@
+body
+ background-image image-set(url("img.png") 1x)

0 comments on commit 7b0f170

Please sign in to comment.