less 2.6.0 → 2.6.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/CHANGELOG.md +10 -1
- package/README.md +2 -2
- package/dist/less.js +240 -209
- package/dist/less.min.js +7 -6
- package/lib/less/functions/color.js +5 -2
- package/lib/less/index.js +1 -1
- package/lib/less/parser/parser-input.js +68 -68
- package/lib/less/parser/parser.js +67 -39
- package/lib/less/tree/mixin-definition.js +1 -1
- package/lib/less/tree/ruleset.js +85 -85
- package/lib/less/tree/unit.js +2 -2
- package/lib/less-browser/error-reporting.js +10 -10
- package/package.json +16 -16
- package/test/browser/less.js +8 -7
- package/test/css/comments2.css +6 -0
- package/test/css/no-strict-math/mixins-guards.css +12 -0
- package/test/less/comments2.less +11 -0
- package/test/less/no-strict-math/mixins-guards.less +25 -0
- package/test/less-bom/comments2.less +11 -0
- package/test/less-bom/no-strict-math/mixins-guards.less +25 -0
package/test/css/comments2.css
CHANGED
package/test/less/comments2.less
CHANGED
|
@@ -18,3 +18,14 @@
|
|
|
18
18
|
@gutter-width * // We strongly recommend you */
|
|
19
19
|
@columns); // do not change this formula. */
|
|
20
20
|
@total-width : @gridsystem-width; // set to 100% for fluid grid */
|
|
21
|
+
|
|
22
|
+
// .............................................................................
|
|
23
|
+
|
|
24
|
+
.some-inline-comments {
|
|
25
|
+
a: yes /* comment */;
|
|
26
|
+
b: red /* comment */;
|
|
27
|
+
@c: yes /* comment */;
|
|
28
|
+
@d: red /* comment */;
|
|
29
|
+
c: @c;
|
|
30
|
+
d: @d;
|
|
31
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// https://github.com/less/less.js/issues/2798
|
|
2
|
+
.test-2798 when ((8+4) < 13) {
|
|
3
|
+
regression: fixed;
|
|
4
|
+
}
|
|
5
|
+
.test-2798 when ((8+6) < 13) {
|
|
6
|
+
regression: should not be visible;
|
|
7
|
+
}
|
|
8
|
+
.conditions-parser-1 when (8+4 < 13) {
|
|
9
|
+
only-atomic: ok;
|
|
10
|
+
}
|
|
11
|
+
.conditions-parser-1 when (8+6 < 13) {
|
|
12
|
+
only-atomic: should not be visible;
|
|
13
|
+
}
|
|
14
|
+
.conditions-parser-2 when (8+(5-1) < 13) {
|
|
15
|
+
only-atomic-with-nested-parenthesis: ok;
|
|
16
|
+
}
|
|
17
|
+
.conditions-parser-2 when (8+(15-1) < 13) {
|
|
18
|
+
only-atomic-with-nested-parenthesis: should not be visible;
|
|
19
|
+
}
|
|
20
|
+
.conditions-parser-3 when (8 < (13+1)) {
|
|
21
|
+
only-atomic-nested-parenthesis-on-right: ok;
|
|
22
|
+
}
|
|
23
|
+
.conditions-parser-3 when (8 < (3+1)) {
|
|
24
|
+
only-atomic-nested-parenthesis-on-right: should not be visible;
|
|
25
|
+
}
|
|
@@ -18,3 +18,14 @@
|
|
|
18
18
|
@gutter-width * // We strongly recommend you */
|
|
19
19
|
@columns); // do not change this formula. */
|
|
20
20
|
@total-width : @gridsystem-width; // set to 100% for fluid grid */
|
|
21
|
+
|
|
22
|
+
// .............................................................................
|
|
23
|
+
|
|
24
|
+
.some-inline-comments {
|
|
25
|
+
a: yes /* comment */;
|
|
26
|
+
b: red /* comment */;
|
|
27
|
+
@c: yes /* comment */;
|
|
28
|
+
@d: red /* comment */;
|
|
29
|
+
c: @c;
|
|
30
|
+
d: @d;
|
|
31
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// https://github.com/less/less.js/issues/2798
|
|
2
|
+
.test-2798 when ((8+4) < 13) {
|
|
3
|
+
regression: fixed;
|
|
4
|
+
}
|
|
5
|
+
.test-2798 when ((8+6) < 13) {
|
|
6
|
+
regression: should not be visible;
|
|
7
|
+
}
|
|
8
|
+
.conditions-parser-1 when (8+4 < 13) {
|
|
9
|
+
only-atomic: ok;
|
|
10
|
+
}
|
|
11
|
+
.conditions-parser-1 when (8+6 < 13) {
|
|
12
|
+
only-atomic: should not be visible;
|
|
13
|
+
}
|
|
14
|
+
.conditions-parser-2 when (8+(5-1) < 13) {
|
|
15
|
+
only-atomic-with-nested-parenthesis: ok;
|
|
16
|
+
}
|
|
17
|
+
.conditions-parser-2 when (8+(15-1) < 13) {
|
|
18
|
+
only-atomic-with-nested-parenthesis: should not be visible;
|
|
19
|
+
}
|
|
20
|
+
.conditions-parser-3 when (8 < (13+1)) {
|
|
21
|
+
only-atomic-nested-parenthesis-on-right: ok;
|
|
22
|
+
}
|
|
23
|
+
.conditions-parser-3 when (8 < (3+1)) {
|
|
24
|
+
only-atomic-nested-parenthesis-on-right: should not be visible;
|
|
25
|
+
}
|