mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Fix tests, fix a bug in comparing values
This commit is contained in:
@@ -52,6 +52,8 @@
|
||||
eformat: rgb(32, 128, 64);
|
||||
unitless: 12;
|
||||
unit: 14em;
|
||||
get-unit: px;
|
||||
get-unit-empty: ;
|
||||
hue: 98;
|
||||
saturation: 12%;
|
||||
lightness: 95%;
|
||||
@@ -82,10 +84,11 @@
|
||||
pow: 64;
|
||||
pow: 27;
|
||||
min: 0;
|
||||
min: min("junk", 5);
|
||||
min: 3pt;
|
||||
min: 5;
|
||||
min: 1pt;
|
||||
min: 3mm;
|
||||
max: 3;
|
||||
max: max(8%, 1cm);
|
||||
max: 5em;
|
||||
percentage: 20%;
|
||||
color: #ff0011;
|
||||
tint: #898989;
|
||||
|
||||
@@ -57,6 +57,9 @@
|
||||
|
||||
unitless: unit(12px);
|
||||
unit: unit((13px + 1px), em);
|
||||
|
||||
get-unit: get-unit(10px);
|
||||
get-unit-empty: get-unit(10);
|
||||
|
||||
hue: hue(hsl(98, 12%, 95%));
|
||||
saturation: saturation(hsl(98, 12%, 95%));
|
||||
@@ -88,10 +91,11 @@
|
||||
pow: pow(4, 3);
|
||||
pow: pow(3, 3em);
|
||||
min: min(0);
|
||||
min: min("junk", 6, 5);
|
||||
min: min(1pc, 3pt);
|
||||
min: min(6, 5);
|
||||
min: min(1pt, 3pt);
|
||||
min: min(1cm, 3mm);
|
||||
max: max(1, 3);
|
||||
max: max(3%, 1cm, 8%, 2mm);
|
||||
max: max(3em, 1em, 2em, 5em);
|
||||
percentage: percentage((10px / 50));
|
||||
color: color("#ff0011");
|
||||
tint: tint(#777777, 13);
|
||||
|
||||
@@ -150,4 +150,10 @@
|
||||
.call-inner-lock-mixin {
|
||||
.inner-locked-mixin();
|
||||
}
|
||||
}
|
||||
}
|
||||
.bug-100cm-1m(@a) when (@a = 1) {
|
||||
.failed {
|
||||
one-hundred: not-equal-to-1;
|
||||
}
|
||||
}
|
||||
.bug-100cm-1m(100cm);
|
||||
|
||||
Reference in New Issue
Block a user