Skip to content

Commit

Permalink
Fixes #828 Add 'x' unit for image-set (synonym to dppx).
Browse files Browse the repository at this point in the history
  • Loading branch information
tonistiigi committed Oct 23, 2012
1 parent b4c438d commit 7b0f170
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/units.js
Expand Up @@ -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/)
];
3 changes: 3 additions & 0 deletions test/cases/units.css
@@ -0,0 +1,3 @@
body {
background-image: image-set(url("img.png") 1x);
}
2 changes: 2 additions & 0 deletions test/cases/units.styl
@@ -0,0 +1,2 @@
body
background-image image-set(url("img.png") 1x)

0 comments on commit 7b0f170

Please sign in to comment.