Adding "dpi" to the list of valid dimensions.

This commit is contained in:
Nicholas Clark
2012-04-05 16:59:33 -04:00
parent cb78933423
commit 6333fddaa2

View File

@@ -684,7 +684,7 @@ less.Parser = function Parser(env) {
var value, c = input.charCodeAt(i);
if ((c > 57 || c < 45) || c === 47) return;
if (value = $(/^(-?\d*\.?\d+)(px|%|em|rem|pc|ex|in|deg|s|ms|pt|cm|mm|rad|grad|turn)?/)) {
if (value = $(/^(-?\d*\.?\d+)(px|%|em|rem|pc|ex|in|deg|s|ms|pt|cm|mm|rad|grad|turn|dpi)?/)) {
return new(tree.Dimension)(value[1], value[2]);
}
},