08-27-周三_17-09-29

This commit is contained in:
2025-08-27 17:10:05 +08:00
commit 86df397d8f
12735 changed files with 1145479 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
.a {
error: (1px + 3em);
}

View File

@@ -0,0 +1,4 @@
SyntaxError: Incompatible units. Change the units or use the unit function. Bad units: 'px' and 'em'. in {path}add-mixed-units.less on line 2, column 3:
1 .a {
2 error: (1px + 3em);
3 }

View File

@@ -0,0 +1,3 @@
.a {
error: ((1px * 2px) + (3em * 3px));
}

View File

@@ -0,0 +1,4 @@
SyntaxError: Incompatible units. Change the units or use the unit function. Bad units: 'px*px' and 'em*px'. in {path}add-mixed-units2.less on line 2, column 3:
1 .a {
2 error: ((1px * 2px) + (3em * 3px));
3 }

View File

@@ -0,0 +1,4 @@

@keyframes @name {
50% {width: 20px;}
}

View File

@@ -0,0 +1,4 @@
NameError: variable @name is undefined in {path}at-rules-undefined-var.less on line 2, column 12:
1
2 @keyframes @name {
3 50% {width: 20px;}

View File

@@ -0,0 +1 @@
@@demo: "hi";

View File

@@ -0,0 +1,2 @@
ParseError: Unrecognised input in {path}bad-variable-declaration1.less on line 1, column 1:
1 @@demo: "hi";

View File

@@ -0,0 +1,3 @@
.test {
color: color("NOT A COLOR");
}

View File

@@ -0,0 +1,4 @@
ArgumentError: error evaluating function `color`: argument must be a color keyword or 3/6 digit hex e.g. #FFF in {path}color-func-invalid-color.less on line 2, column 10:
1 .test {
2 color: color("NOT A COLOR");
3 }

View File

@@ -0,0 +1,3 @@
.a {
@wrongHEXColorCode: #DCALLB;
}

View File

@@ -0,0 +1,4 @@
SyntaxError: Invalid HEX color code in {path}color-invalid-hex-code.less on line 2, column 29:
1 .a {
2 @wrongHEXColorCode: #DCALLB;
3 }

View File

@@ -0,0 +1,3 @@
.a {
@wrongHEXColorCode: #fffblack;
}

View File

@@ -0,0 +1,4 @@
SyntaxError: Invalid HEX color code in {path}color-invalid-hex-code2.less on line 2, column 29:
1 .a {
2 @wrongHEXColorCode: #fffblack;
3 }

View File

@@ -0,0 +1,4 @@

selector when (default()) {
color: red;
}

View File

@@ -0,0 +1,4 @@
SyntaxError: error evaluating function `default`: it is currently only allowed in parametric mixin guards, in {path}css-guard-default-func.less on line 2, column 16:
1
2 selector when (default()) {
3 color: red;

View File

@@ -0,0 +1,6 @@
@a: {
b: 1;
};
.a {
a: @a;
}

View File

@@ -0,0 +1,4 @@
SyntaxError: Rulesets cannot be evaluated on a property. in {path}detached-ruleset-1.less on line 5, column 3:
4 .a {
5 a: @a;
6 }

View File

@@ -0,0 +1,6 @@
@a: {
b: 1;
};
.a {
a: @a();
}

View File

@@ -0,0 +1,4 @@
ParseError: Expected ')' in {path}detached-ruleset-2.less on line 5, column 9:
4 .a {
5 a: @a();
6 }

View File

@@ -0,0 +1,4 @@
@a: {
b: 1;
};
@a();

View File

@@ -0,0 +1,4 @@
SyntaxError: properties must be inside selector blocks, they cannot be in the root. in {path}detached-ruleset-3.less on line 2, column 3:
1 @a: {
2 b: 1;
3 };

View File

@@ -0,0 +1,4 @@
.mixin-definition(@b) {
@a();
}
.mixin-definition({color: red;});

View File

@@ -0,0 +1,3 @@
SyntaxError: variable @a is undefined in {path}detached-ruleset-5.less on line 4, column 1:
3 }
4 .mixin-definition({color: red;});

View File

@@ -0,0 +1,5 @@
.a {
b: {
color: red;
};
}

View File

@@ -0,0 +1,4 @@
ParseError: Unrecognised input in {path}detached-ruleset-6.less on line 2, column 6:
1 .a {
2 b: {
3 color: red;

View File

@@ -0,0 +1,3 @@
.a {
error: (1px / 3em);
}

View File

@@ -0,0 +1,4 @@
SyntaxError: Multiple units in dimension. Correct the units or use the unit function. Bad unit: px/em in {path}divide-mixed-units.less on line 2, column 3:
1 .a {
2 error: (1px / 3em);
3 }

View File

@@ -0,0 +1,3 @@
:extend(.a all) {
property: red;
}

View File

@@ -0,0 +1,3 @@
SyntaxError: Extend must be used to extend a selector, it cannot be used on its own in {path}extend-no-selector.less on line 1, column 17:
1 :extend(.a all) {
2 property: red;

View File

@@ -0,0 +1,3 @@
.a:extend(.b all).c {
property: red;
}

View File

@@ -0,0 +1,3 @@
SyntaxError: Extend can only be used at the end of selector in {path}extend-not-at-end.less on line 1, column 21:
1 .a:extend(.b all).c {
2 property: red;

View File

@@ -0,0 +1 @@
@import malformed "this-statement-is-invalid.less";

View File

@@ -0,0 +1,3 @@
SyntaxError: malformed import statement in {path}import-malformed.less on line 1, column 1:
1 @import malformed "this-statement-is-invalid.less";
2

View File

@@ -0,0 +1,6 @@
.a {
color: green;
// tests line number for import reference is correct
}
@import "file-does-not-exist.less";

View File

@@ -0,0 +1,3 @@
FileError: '{pathhref}file-does-not-exist.less' wasn't found{404status}{node}. Tried - {path}file-does-not-exist.less,{pathrel}file-does-not-exist.less,file-does-not-exist.less{/node} in {path}import-missing.less on line 6, column 1:
5
6 @import "file-does-not-exist.less";

View File

@@ -0,0 +1 @@
@import "this-statement-is-invalid.less"

View File

@@ -0,0 +1,2 @@
SyntaxError: missing semi-colon or unrecognised media features on import in {path}import-no-semi.less on line 1, column 1:
1 @import "this-statement-is-invalid.less"

View File

@@ -0,0 +1 @@
@import "imports/import-subfolder1.less";

View File

@@ -0,0 +1,3 @@
NameError: .mixin-not-defined is undefined in {path}mixin-not-defined.less on line 11, column 1:
10
11 .mixin-not-defined();

View File

@@ -0,0 +1 @@
@import "imports/import-subfolder2.less";

View File

@@ -0,0 +1,4 @@
ParseError: Unrecognised input. Possibly missing opening '{' in {path}parse-error-curly-bracket.less on line 4, column 1:
3 }
4 }
5

View File

@@ -0,0 +1 @@
@import "subfolder/mixin-not-defined.less";

View File

@@ -0,0 +1 @@
@import "subfolder/parse-error-curly-bracket.less";

View File

@@ -0,0 +1,4 @@
.someclass
{
font-weight: bold;
}

View File

@@ -0,0 +1 @@
@import "../../mixin-not-defined.less";

View File

@@ -0,0 +1 @@
@import "../../parse-error-curly-bracket.less";

View File

@@ -0,0 +1,3 @@
.scope {
var: `this.foo.toJS`;
}

View File

@@ -0,0 +1,4 @@
SyntaxError: JavaScript evaluation error: 'TypeError: Cannot read property 'toJS' of undefined' in {path}javascript-error.less on line 2, column 10:
1 .scope {
2 var: `this.foo.toJS`;
3 }

View File

@@ -0,0 +1,3 @@
.scope {
@a: `@{b}`;
}

View File

@@ -0,0 +1,4 @@
NameError: variable @b is undefined in {path}javascript-undefined-var.less on line 2, column 9:
1 .scope {
2 @a: `@{b}`;
3 }

View File

@@ -0,0 +1,6 @@
.mixin(@a : 4, @b : 3, @c: 2) {
will: fail;
}
.mixin-test {
.mixin(@a: 5; @b: 6, @c: 7);
}

View File

@@ -0,0 +1,4 @@
SyntaxError: Cannot mix ; and , as delimiter types in {path}mixed-mixin-definition-args-1.less on line 5, column 30:
4 .mixin-test {
5 .mixin(@a: 5; @b: 6, @c: 7);
6 }

View File

@@ -0,0 +1,6 @@
.mixin(@a : 4, @b : 3, @c: 2) {
will: fail;
}
.mixin-test {
.mixin(@a: 5, @b: 6; @c: 7);
}

View File

@@ -0,0 +1,4 @@
SyntaxError: Cannot mix ; and , as delimiter types in {path}mixed-mixin-definition-args-2.less on line 5, column 26:
4 .mixin-test {
5 .mixin(@a: 5, @b: 6; @c: 7);
6 }

View File

@@ -0,0 +1,11 @@

.error-is-further-on() {
}
.pad-here-to-reproduce-error-in() {
}
.the-import-subfolder-test() {
}
.mixin-not-defined();

View File

@@ -0,0 +1,3 @@
NameError: .mixin-not-defined is undefined in {path}mixin-not-defined.less on line 11, column 1:
10
11 .mixin-not-defined();

View File

@@ -0,0 +1,6 @@
@saxofon:trumpete;
.mixin(saxofon) {
}
.mixin(@saxofon);

View File

@@ -0,0 +1,3 @@
RuntimeError: No matching definition was found for `.mixin(trumpete)` in {path}mixin-not-matched.less on line 6, column 1:
5
6 .mixin(@saxofon);

View File

@@ -0,0 +1,6 @@
@saxofon:trumpete;
.mixin(@a, @b) {
}
.mixin(@a: @saxofon);

View File

@@ -0,0 +1,3 @@
RuntimeError: No matching definition was found for `.mixin(@a:trumpete)` in {path}mixin-not-matched2.less on line 6, column 1:
5
6 .mixin(@a: @saxofon);

View File

@@ -0,0 +1,9 @@
.something {
& {
.a {value: a}
}
& {
.b {.a} // was Err. before 1.6.2
}
}

View File

@@ -0,0 +1,4 @@
NameError: .a is undefined in {path}mixin-not-visible-in-scope-1.less on line 7, column 13:
6 & {
7 .b {.a} // was Err. before 1.6.2
8 }

View File

@@ -0,0 +1,9 @@

guard-default-func-conflict {
.m(@x, 1) {}
.m(@x, 2) when (default()) {}
.m(@x, 2) when (default()) {}
.m(1, 1);
.m(1, 2);
}

View File

@@ -0,0 +1,4 @@
RuntimeError: Ambiguous use of `default()` found when matching for `.m(1, 2)` in {path}mixins-guards-default-func-1.less on line 8, column 5:
7 .m(1, 1);
8 .m(1, 2);
9 }

View File

@@ -0,0 +1,9 @@

guard-default-func-conflict {
.m(1) {}
.m(@x) when not(default()) {}
.m(@x) when (@x = 3) and (default()) {}
.m(2);
.m(3);
}

View File

@@ -0,0 +1,4 @@
RuntimeError: Ambiguous use of `default()` found when matching for `.m(3)` in {path}mixins-guards-default-func-2.less on line 8, column 5:
7 .m(2);
8 .m(3);
9 }

View File

@@ -0,0 +1,9 @@

guard-default-func-conflict {
.m(1) {}
.m(@x) when not(default()) {}
.m(@x) when not(default()) {}
.m(1);
.m(2);
}

View File

@@ -0,0 +1,4 @@
RuntimeError: Ambiguous use of `default()` found when matching for `.m(2)` in {path}mixins-guards-default-func-3.less on line 8, column 5:
7 .m(1);
8 .m(2);
9 }

View File

@@ -0,0 +1,4 @@
@ie8: true;
.a when (@ie8 = true),
.b {
}

View File

@@ -0,0 +1,4 @@
SyntaxError: Guards are only currently allowed on a single selector. in {path}multiple-guards-on-css-selectors.less on line 3, column 1:
2 .a when (@ie8 = true),
3 .b {
4 }

View File

@@ -0,0 +1,4 @@
@ie8: true;
.a,
.b when (@ie8 = true) {
}

View File

@@ -0,0 +1,4 @@
SyntaxError: Guards are only currently allowed on a single selector. in {path}multiple-guards-on-css-selectors2.less on line 3, column 23:
2 .a,
3 .b when (@ie8 = true) {
4 }

View File

@@ -0,0 +1,7 @@
/* Test */
#blah {
// blah
}
.a {
error: (1px * 1em);
}

View File

@@ -0,0 +1,4 @@
SyntaxError: Multiple units in dimension. Correct the units or use the unit function. Bad unit: em*px in {path}multiply-mixed-units.less on line 6, column 3:
5 .a {
6 error: (1px * 1em);
7 }

View File

@@ -0,0 +1,3 @@
.a {
something: (12 (13 + 5 -23) + 5);
}

View File

@@ -0,0 +1,4 @@
ParseError: Expected ')' in {path}parens-error-1.less on line 2, column 18:
1 .a {
2 something: (12 (13 + 5 -23) + 5);
3 }

View File

@@ -0,0 +1,3 @@
.a {
something: (12 * (13 + 5 -23));
}

View File

@@ -0,0 +1,4 @@
ParseError: Expected ')' in {path}parens-error-2.less on line 2, column 28:
1 .a {
2 something: (12 * (13 + 5 -23));
3 }

View File

@@ -0,0 +1,3 @@
.a {
something: (12 + (13 + 10 -23));
}

View File

@@ -0,0 +1,4 @@
ParseError: Expected ')' in {path}parens-error-3.less on line 2, column 29:
1 .a {
2 something: (12 + (13 + 10 -23));
3 }

View File

@@ -0,0 +1,4 @@
body {
background-color: #fff;
}
}

View File

@@ -0,0 +1,4 @@
ParseError: Unrecognised input. Possibly missing opening '{' in {path}parse-error-curly-bracket.less on line 4, column 1:
3 }
4 }
5

View File

@@ -0,0 +1,5 @@
@media (extra: bracket)) {
body {
background-color: #fff;
}
}

View File

@@ -0,0 +1,3 @@
ParseError: media definitions require block statements after any features in {path}parse-error-media-no-block-1.less on line 1, column 24:
1 @media (extra: bracket)) {
2 body {

View File

@@ -0,0 +1 @@
@media

View File

@@ -0,0 +1,2 @@
ParseError: media definitions require block statements after any features in {path}parse-error-media-no-block-2.less on line 1, column 7:
1 @media

View File

@@ -0,0 +1,4 @@
@media (min-width: 500px) {
.sometimes-big {
font-size: 5000px;
}

View File

@@ -0,0 +1,3 @@
ParseError: media definitions require block statements after any features in {path}parse-error-media-no-block-3.less on line 4, column 4:
3 font-size: 5000px;
4 }

View File

@@ -0,0 +1,2 @@
body {
background-color: #fff;

View File

@@ -0,0 +1,3 @@
ParseError: Unrecognised input. Possibly missing something in {path}parse-error-missing-bracket.less on line 3, column 1:
2 background-color: #fff;
3

View File

@@ -0,0 +1,5 @@
@media (missing: bracket {
body {
background-color: #fff;
}
}

View File

@@ -0,0 +1,3 @@
ParseError: Missing closing ')' in {path}parse-error-missing-parens.less on line 1, column 26:
1 @media (missing: bracket {
2 body {

View File

@@ -0,0 +1,13 @@
@import 'import/import-test.less';
body
{
font-family: arial, sans-serif;
}
nonsense;
.clickable
{
cursor: pointer;
}

View File

@@ -0,0 +1,4 @@
ParseError: Unrecognised input in {path}parse-error-with-import.less on line 8, column 9:
7
8 nonsense;
9

View File

@@ -0,0 +1,3 @@
.a {
error: calc(1 %);
}

View File

@@ -0,0 +1,4 @@
SyntaxError: Invalid % without number in {path}percentage-missing-space.less on line 2, column 3:
1 .a {
2 error: calc(1 %);
3 }

View File

@@ -0,0 +1,3 @@
div {
percentage: percentage(16/17);
}

View File

@@ -0,0 +1,4 @@
ArgumentError: error evaluating function `percentage`: argument must be a number in {path}percentage-non-number-argument.less on line 2, column 15:
1 div {
2 percentage: percentage(16/17);
3 }

View File

@@ -0,0 +1,3 @@
a {
* : 1;
}

Some files were not shown because too many files have changed in this diff Show More