@less/test-data 4.7.0 → 4.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "4.7.0",
6
+ "version": "4.8.1",
7
7
  "description": "Less files and CSS results",
8
8
  "author": "Alexis Sellier <self@cloudhead.net>",
9
9
  "contributors": [
@@ -0,0 +1,3 @@
1
+ .a {
2
+ b: percentage(var(--x));
3
+ }
@@ -0,0 +1,4 @@
1
+ ArgumentError: Error evaluating function `percentage`: argument must be a number in {path}percentage-css-var.less on line 2, column 6:
2
+ 1 .a {
3
+ 2 b: percentage(var(--x));
4
+ 3 }
@@ -226,6 +226,7 @@ html {
226
226
  c: false;
227
227
  d: true;
228
228
  e: false;
229
+ f: true;
229
230
  }
230
231
  #if {
231
232
  a: 1;
@@ -259,6 +259,7 @@ html {
259
259
  // not without parentheses (should behave the same as with parentheses)
260
260
  d: boolean(not false);
261
261
  e: boolean(not true);
262
+ f: boolean((2 > 1) = (3 > 2));
262
263
  }
263
264
 
264
265
  #if {
@@ -0,0 +1,10 @@
1
+ .trig {
2
+ a: sin(var(--angle));
3
+ b: cos(var(--a));
4
+ c: calc(tan(var(--t)) * 1px);
5
+ d: atan2(var(--x), var(--y));
6
+ }
7
+ .numeric {
8
+ a: 0.5;
9
+ b: 5;
10
+ }
@@ -0,0 +1,14 @@
1
+ // Math functions cannot resolve a runtime CSS var() at compile time, so the
2
+ // whole call is left for the browser instead of erroring (issue #4224).
3
+ .trig {
4
+ a: sin(var(--angle));
5
+ b: cos(var(--a));
6
+ c: calc(tan(var(--t)) * 1px);
7
+ d: atan2(var(--x), var(--y));
8
+ }
9
+
10
+ // Concrete numeric arguments still evaluate.
11
+ .numeric {
12
+ a: sin(30deg);
13
+ b: ceil(4.2);
14
+ }
@@ -142,3 +142,11 @@ h3 + * {
142
142
  .button.large {
143
143
  padding-left: 40em;
144
144
  }
145
+ .rest-forwarding-empty {
146
+ a: 1;
147
+ b: fallback;
148
+ }
149
+ .rest-forwarding-filled {
150
+ a: 1;
151
+ b: 2;
152
+ }
@@ -143,3 +143,19 @@ h3 { .margin_between(15px, 5px); }
143
143
  .foo {
144
144
  .clearfix();
145
145
  }
146
+
147
+ // Forwarding an unset variadic must fall through to the callee's default,
148
+ // not pass an empty argument that overrides it (issue #4352).
149
+ .rest-forward(@a, @rest...) {
150
+ .rest-target(@a, @rest);
151
+ }
152
+ .rest-target(@a, @b: fallback) {
153
+ a: @a;
154
+ b: @b;
155
+ }
156
+ .rest-forwarding-empty {
157
+ .rest-forward(1);
158
+ }
159
+ .rest-forwarding-filled {
160
+ .rest-forward(1, 2);
161
+ }
@@ -25,3 +25,9 @@
25
25
  height: 29%;
26
26
  color: #123456;
27
27
  }
28
+ .arity-positional {
29
+ value: 3;
30
+ }
31
+ .arity-named {
32
+ value: 4;
33
+ }
@@ -34,3 +34,18 @@
34
34
  .named-args3 {
35
35
  .mixin2(@b: 30%, @c: #123456);
36
36
  }
37
+
38
+ .arity-mixin(@a) {
39
+ value: @a;
40
+ }
41
+ .arity-mixin(@a: 1, @b) {
42
+ value: @a + @b;
43
+ }
44
+
45
+ .arity-positional {
46
+ .arity-mixin(3);
47
+ }
48
+
49
+ .arity-named {
50
+ .arity-mixin(@b: 3);
51
+ }