Skip to content
Browse files

Merge branch 'master' of https://github.com/Lopo/lessphp

  • Loading branch information...
2 parents 0ee0a23 + 6f3c503 commit c3a141863835402d610c3b4b9c860f600b4ae02d @leafo leafo committed
Showing with 11 additions and 2 deletions.
  1. +11 −2 lessc.inc.php
View
13 lessc.inc.php
@@ -45,8 +45,17 @@ class lessc {
static protected $operatorString; // regex string to match any of the operators
static protected $dtypes = array('expression', 'variable', 'function', 'negative', 'list'); // types with delayed computation
- static protected $units = array(
- 'px', '%', 'in', 'cm', 'mm', 'em', 'ex', 'pt', 'pc', 'ms', 's', 'deg', 'gr');
+ /**
+ * @link http://www.w3.org/TR/css3-values/
+ */
+ static protected $units=array(
+ 'em', 'ex', 'px', 'gd', 'rem', 'vw', 'vh', 'vm', 'ch', // Relative length units
+ 'in', 'cm', 'mm', 'pt', 'pc', // Absolute length units
+ '%', // Percentages
+ 'deg', 'grad', 'rad', 'turn', // Angles
+ 'ms', 's', // Times
+ 'Hz', 'kHz', //Frequencies
+ );
public $importDisabled = false;
public $importDir = '';

0 comments on commit c3a1418

Please sign in to comment.
Something went wrong with that request. Please try again.