@less/test-data 4.8.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 +1 -1
- package/tests-error/eval/percentage-css-var.less +3 -0
- package/tests-error/eval/percentage-css-var.txt +4 -0
- package/tests-unit/math-css-vars/math-css-vars.css +10 -0
- package/tests-unit/math-css-vars/math-css-vars.less +14 -0
- package/tests-unit/mixins/mixins.css +8 -0
- package/tests-unit/mixins/mixins.less +16 -0
package/package.json
CHANGED
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|