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

3
node_modules/less/test/less-bom/charsets.less generated vendored Normal file
View File

@@ -0,0 +1,3 @@
@charset "UTF-8";
@import "import/import-charset-test";

98
node_modules/less/test/less-bom/colors.less generated vendored Normal file
View File

@@ -0,0 +1,98 @@
#yelow {
#short {
color: #fea;
}
#long {
color: #ffeeaa;
}
#rgba {
color: rgba(255, 238, 170, 0.1);
}
#argb {
color: argb(rgba(255, 238, 170, 0.1));
}
}
#blue {
#short {
color: #00f;
}
#long {
color: #0000ff;
}
#rgba {
color: rgba(0, 0, 255, 0.1);
}
#argb {
color: argb(rgba(0, 0, 255, 0.1));
}
}
#alpha #hsla {
color: hsla(11, 20%, 20%, 0.6);
}
#overflow {
.a { color: (#111111 - #444444); } // #000000
.b { color: (#eee + #fff); } // #ffffff
.c { color: (#aaa * 3); } // #ffffff
.d { color: (#00ee00 + #009900); } // #00ff00
.e { color: rgba(-99.9, 31.4159, 321, 0.42); }
}
#grey {
color: rgb(200, 200, 200);
}
#333333 {
color: rgb(20%, 20%, 20%);
}
#808080 {
color: hsl(50, 0%, 50%);
}
#00ff00 {
color: hsl(120, 100%, 50%);
}
.lightenblue {
color: lighten(blue, 10%);
}
.darkenblue {
color: darken(blue, 10%);
}
.unknowncolors {
color: blue2;
border: 2px solid superred;
}
.transparent {
color: transparent;
background-color: rgba(0, 0, 0, 0);
}
#alpha {
@colorvar: rgba(150, 200, 150, 0.7);
#fromvar {
opacity: alpha(@colorvar);
}
#short {
opacity: alpha(#aaa);
}
#long {
opacity: alpha(#bababa);
}
#rgba {
opacity: alpha(rgba(50, 120, 95, 0.2));
}
#hsl {
opacity: alpha(hsl(120, 100%, 50%));
}
}
#percentage {
color: red(rgb(100%, 0, 0));
border-color: rgba(100%, 0, 0, 50%);
}

102
node_modules/less/test/less-bom/comments.less generated vendored Normal file
View File

@@ -0,0 +1,102 @@
/******************\
* *
* Comment Header *
* *
\******************/
/*
Comment
*/
/*
* Comment Test
*
* - cloudhead (http://cloudhead.net)
*
*/
////////////////
@var: "content";
////////////////
/* Colors
* ------
* #EDF8FC (background blue)
* #166C89 (darkest blue)
*
* Text:
* #333 (standard text) // A comment within a comment!
* #1F9EC9 (standard link)
*
*/
/* @group Variables
------------------- */
#comments /* boo *//* boo again*/,
//.commented_out1
//.commented_out2
//.commented_out3
.comments //end of comments1
//end of comments2
{
/**/ // An empty comment
color: red; /* A C-style comment */ /* A C-style comment */
background-color: orange; // A little comment
font-size: 12px;
/* lost comment */ content: @var;
border: 1px solid black;
// padding & margin //
padding: 0; // }{ '"
margin: 2em;
} //
/* commented out
#more-comments {
color: grey;
}
*/
.selector /* .with */, .lots, /* of */ .comments {
color/* survive */ /* me too */: grey, /* blue */ orange;
-webkit-border-radius: 2px /* webkit only */;
-moz-border-radius: (2px * 4) /* moz only with operation */;
}
.mixin_def_with_colors(@a: white, // in
@b: 1px //put in @b - causes problems! --->
) // the
when (@a = white) {
.test {
color: @b;
}
}
.mixin_def_with_colors();
// .s when
//R/2
.sr-only-focusable {
clip: auto;
}
@-webkit-keyframes /* Safari */ hover /* and Chrome */ {
0% {
color: red;
}
}
#last { color: blue }
//
/* *//* { *//* *//* *//* */#div { color:#A33; }/* } */
// line immediatly followed
/*by block */
@string_w_comment: ~"/* // Not commented out // */";
#output-block { comment: @string_w_comment; }
/*comment on last line*/

20
node_modules/less/test/less-bom/comments2.less generated vendored Normal file
View File

@@ -0,0 +1,20 @@
@media all and/*! */(max-width:1024px) {}
@-webkit-keyframes hover /* Safari and Chrome */{ }
.bg {
background-image: linear-gradient(#333 /*{comment}*/, #111);
}
#planadvisor,
/*comment*//*comment*/
.first,/*comment*//*comment*/.planning {
margin:10px;
total-width: @total-width;
}
@base : 1;
@column-width : @base * 6em; // Width of column */
@gutter-width : 2em; // Width of column spacing */
@columns : 12; // Number of Columns */
@gridsystem-width : (@column-width * // For calculating the total */
@columns) + ( // width of the content area. */
@gutter-width * // We strongly recommend you */
@columns); // do not change this formula. */
@total-width : @gridsystem-width; // set to 100% for fluid grid */

View File

@@ -0,0 +1,36 @@
#colours {
color1: #fea;
color2: #ffeeaa;
color3: rgba(255, 238, 170, 0.1);
@color1: #fea;
string: "@{color1}";
/* comments are stripped */
// both types!
/*! but not this type
Note preserved whitespace
*/
}
dimensions {
val: 0.1px;
val: 0em;
val: 4cm;
val: 0.2;
val: 5;
angles-must-have-unit: 0deg;
durations-must-have-unit: 0s;
length-doesnt-have-unit: 0px;
width: auto\9;
}
@page {
marks: none;
@top-left-corner {
vertical-align: top;
}
@top-left {
vertical-align: top;
}
}
.shadow ^ .dom,
body ^^ .shadow {
display: done;
}

154
node_modules/less/test/less-bom/css-3.less generated vendored Normal file
View File

@@ -0,0 +1,154 @@
.comma-delimited {
text-shadow: -1px -1px 1px red, 6px 5px 5px yellow;
-moz-box-shadow: 0pt 0pt 2px rgba(255, 255, 255, 0.4) inset,
0pt 4px 6px rgba(255, 255, 255, 0.4) inset;
-webkit-transform: rotate(-0.0000000001deg);
}
@font-face {
font-family: Headline;
unicode-range: U+??????, U+0???, U+0-7F, U+A5;
}
.other {
-moz-transform: translate(0, 11em) rotate(-90deg);
transform: rotateX(45deg);
}
.item[data-cra_zy-attr1b-ut3=bold] {
font-weight: bold;
}
p:not([class*="lead"]) {
color: black;
}
input[type="text"].class#id[attr=32]:not(1) {
color: white;
}
div#id.class[a=1][b=2].class:not(1) {
color: white;
}
ul.comma > li:not(:only-child)::after {
color: white;
}
ol.comma > li:nth-last-child(2)::after {
color: white;
}
li:nth-child(4n+1),
li:nth-child(-5n),
li:nth-child(-n+2) {
color: white;
}
a[href^="http://"] {
color: black;
}
a[href$="http://"] {
color: black;
}
form[data-disabled] {
color: black;
}
p::before {
color: black;
}
#issue322 {
-webkit-animation: anim2 7s infinite ease-in-out;
}
@-webkit-keyframes frames {
0% { border: 1px }
5.5% { border: 2px }
100% { border: 3px }
}
@keyframes fontbulger1 {
to {
font-size: 15px;
}
from,to {
font-size: 12px;
}
0%,100% {
font-size: 12px;
}
}
.units {
font: 1.2rem/2rem;
font: 8vw/9vw;
font: 10vh/12vh;
font: 12vm/15vm;
font: 12vmin/15vmin;
font: 1.2ch/1.5ch;
}
@supports ( box-shadow: 2px 2px 2px black ) or
( -moz-box-shadow: 2px 2px 2px black ) {
.outline {
box-shadow: 2px 2px 2px black;
-moz-box-shadow: 2px 2px 2px black;
}
}
@-x-document url-prefix(""github.com"") {
h1 {
color: red;
}
}
@viewport {
font-size: 10px;
}
@namespace foo url(http://www.example.com);
foo|h1 { color: blue; }
foo|* { color: yellow; }
|h1 { color: red; }
*|h1 { color: green; }
h1 { color: green; }
.upper-test {
UpperCaseProperties: allowed;
}
@host {
div {
display: block;
}
}
::distributed(input::placeholder) {
color: #b3b3b3;
}
.shadow ^ .dom,
body ^^ .shadow {
display: done;
}
:host(.sel .a),
:host-context(.sel .b),
.sel /deep/ .b,
::content .sel {
type: shadow-dom;
}
/deep/ b {
c: 'd';
&[e]{
f: 'g';
}
}
#issue2066 {
background: url('/images/icon-team.svg') 0 0 / contain;
}
@counter-style triangle {
system: cyclic;
symbols: ‣;
suffix: " ";
}
@-ms-viewport{
//width: auto !important;
}

33
node_modules/less/test/less-bom/css-escapes.less generated vendored Normal file
View File

@@ -0,0 +1,33 @@
@ugly: fuchsia;
.escape\|random\|char {
color: red;
}
.mixin\!tUp {
font-weight: bold;
}
// class="404"
.\34 04 {
background: red;
strong {
color: @ugly;
.mixin\!tUp;
}
}
.trailingTest\+ {
color: red;
}
/* This hideous test of hideousness checks for the selector "blockquote" with various permutations of hex escapes */
\62\6c\6f \63 \6B \0071 \000075o\74 e {
color: silver;
}
[ng\:cloak],
ng\:form {
display: none;
}

103
node_modules/less/test/less-bom/css-guards.less generated vendored Normal file
View File

@@ -0,0 +1,103 @@

.light when (lightness(@a) > 50%) {
color: green;
}
.dark when (lightness(@a) < 50%) {
color: orange;
}
@a: #ddd;
.see-the {
@a: #444; // this mirrors what mixins do - they evaluate the guards at the point of definition
.light();
.dark();
}
.hide-the {
.light();
.dark();
}
.multiple-conditions-1 when (@b = 1), (@c = 2), (@d = 3) {
color: red;
}
.multiple-conditions-2 when (@b = 1), (@c = 2), (@d = 2) {
color: blue;
}
@b: 2;
@c: 3;
@d: 3;
.inheritance when (@b = 2) {
.test {
color: black;
}
&:hover {
color: pink;
}
.hideme when (@b = 1) {
color: green;
}
& when (@b = 1) {
hideme: green;
}
}
.hideme when (@b = 1) {
.test {
color: black;
}
&:hover {
color: pink;
}
.hideme when (@b = 1) {
color: green;
}
}
& when (@b = 1) {
.hideme {
color: red;
}
}
.mixin-with-guard-inside(@colWidth) {
// selector with guard (applies also to & when() ...)
.clsWithGuard when (@colWidth <= 0) {
dispaly: none;
}
}
.mixin-with-guard-inside(0px);
.dont-split-me-up {
width: 1px;
& when (@c = 3) {
color: red;
}
& when (@c = 3) {
height: 1px;
}
+ & when (@c = 3) { // creates invalid css but tests that we don't fold it in
sibling: true;
}
}
.scope-check when (@c = 3) {
@k: 1px;
& when (@c = 3) {
@k: 2px;
sub-prop: @k;
}
prop: @k;
}
.scope-check-2 {
.scope-check();
@k:4px;
}
.errors-if-called when (@c = never) {
.mixin-doesnt-exist();
}
a:hover when (2 = true) {5:-}

108
node_modules/less/test/less-bom/css.less generated vendored Normal file
View File

@@ -0,0 +1,108 @@
@charset "utf-8";
div { color: black; }
div { width: 99%; }
* {
min-width: 45em;
}
h1, h2 > a > p, h3 {
color: none;
}
div.class {
color: blue;
}
div#id {
color: green;
}
.class#id {
color: purple;
}
.one.two.three {
color: grey;
}
@media print {
* {
font-size: 3em;
}
}
@media screen {
* {
font-size: 10px;
}
}
@font-face {
font-family: 'Garamond Pro';
}
a:hover, a:link {
color: #999;
}
p, p:first-child {
text-transform: none;
}
q:lang(no) {
quotes: none;
}
p + h1 {
font-size: +2.2em;
}
#shorthands {
border: 1px solid #000;
font: 12px/16px Arial;
font: 100%/16px Arial;
margin: 1px 0;
padding: 0 auto;
}
#more-shorthands {
margin: 0;
padding: 1px 0 2px 0;
font: normal small/20px 'Trebuchet MS', Verdana, sans-serif;
font: 0/0 a;
border-radius: 5px / 10px;
}
.misc {
-moz-border-radius: 2px;
display: -moz-inline-stack;
width: .1em;
background-color: #009998;
background: -webkit-gradient(linear, left top, left bottom, from(red), to(blue));
margin: ;
.nested-multiple {
multiple-semi-colons: yes;;;;;;
};
filter: alpha(opacity=100);
width: auto\9;
}
#important {
color: red !important;
width: 100%!important;
height: 20px ! important;
}
.def-font(@name) {
@font-face {
font-family: @name
}
}
.def-font(font-a);
.def-font(font-b);
.æøå {
margin: 0;
}

25
node_modules/less/test/less-bom/debug/import/test.less generated vendored Normal file
View File

@@ -0,0 +1,25 @@
@charset "ISO-8859-1";
.mixin_import1() {
@media all {
.tst {
color: black;
@media screen {
color: red;
.tst3 {
color: white;
}
}
}
}
}
.mixin_import2() {
.tst2 {
color: white;
}
}
.tst3 {
color: grey;
}

33
node_modules/less/test/less-bom/debug/linenumbers.less generated vendored Normal file
View File

@@ -0,0 +1,33 @@
@charset "UTF-8";
@import "import/test.less";
.start() {
.test2 {
color: red;
}
}
.mix() {
color: black;
}
.test1 {
.mix();
}
.start();
.mixin_import1();
.mixin_import2();
@debug: 1;
& when (@debug = 1) {
.test {
color: red;
& when (@debug = 1) {
width: 2;
}
}
}

112
node_modules/less/test/less-bom/detached-rulesets.less generated vendored Normal file
View File

@@ -0,0 +1,112 @@
@ruleset: {
color: black;
background: white;
};
@a: 1px;
.wrap-mixin(@ruleset) {
@a: hidden and if you see this in the output its a bug;
@b: visible;
@d: magic-frame; // same behaviour as mixin calls - falls back to this frame
.wrap-selector {
@c: visible;
@ruleset();
visible-one: @b;
visible-two: @c;
}
};
.wrap-mixin({
color: black;
one: @a;
@b: hidden and if you see this in the output its a bug;
@c: hidden and if you see this in the output its a bug;
four: @d;
});
.wrap-mixin(@ruleset: {
color: red;
});
.wrap-mixin(@ruleset);
.desktop-and-old-ie(@rules) {
@media screen and (min-width: 1200) { @rules(); }
html.lt-ie9 & { @rules(); }
}
header {
background: blue;
.desktop-and-old-ie({
background: red;
});
}
.wrap-mixin-calls-wrap(@ruleset) {
.wrap-mixin(@ruleset);
};
.wrap-mixin({
test: extra-wrap;
.wrap-mixin-calls-wrap({
test: wrapped-twice;
});
});
.wrap-mixin({
test-func: unit(90px);
test-arithmetic: unit((9+9), px);
});
// without mixins
@ruleset-2: {
b: 1;
};
.without-mixins {
@ruleset-2();
}
@my-ruleset: {
.my-selector {
@media tv {
background-color: black;
}
}
};
@media (orientation:portrait) {
@my-ruleset();
.wrap-media-mixin({
@media tv {
.triple-wrapped-mq {
triple: true;
}
}
});
}
.wrap-media-mixin(@ruleset) {
@media widescreen {
@media print {
@ruleset();
}
@ruleset();
}
@ruleset();
}
// unlocking mixins
@my-mixins: {
.mixin() {
test: test;
}
};
@my-mixins();
.a {
.mixin();
}
// as mixin argument default
.mixin-definition(@a: {}; @b: {default: works;};) {
@a();
@b();
}
.argument-default {
.mixin-definition();
.mixin-definition({direct: works;}; @b: {named: works;});
}

142
node_modules/less/test/less-bom/directives-bubling.less generated vendored Normal file
View File

@@ -0,0 +1,142 @@
//simple case: @document
.parent {
color:green;
@document url-prefix() {
.child {
color:red;
}
}
}
//selectors joinings test
.top {
@supports (sandwitch: butter) {
.inside & {
property: value;
}
}
}
@supports (sandwitch: bread) {
.in1 {
.in2 {
property: value;
}
}
}
.top {
.inside & {
@supports (sandwitch: ham) {
property: value;
}
}
}
//combined with @font-face which has different kind of body
@supports (font-family: weirdFont) {
@font-face {
font-family: something;
src: made-up-url;
}
}
@font-face {
@supports not (-webkit-font-smoothing: subpixel-antialiased) {
font-family: something;
src: made-up-url;
}
}
//bubling through media
@supports (property: value) {
.outOfMedia & {
@media (max-size: 2px) {
@supports (whatever: something) {
property: value;
}
}
}
}
.onTop & {
@supports (property: value) {
@media (max-size: 2px) {
@supports (whatever: something) {
property: value;
}
}
}
}
//long combination of supports and media
@media print {
html {
in-html: visible;
@supports (upper: test) {
in-supports: first;
div {
in-div: visible;
@supports not (-webkit-font-smoothing: subpixel-antialiased) {
in-supports: second;
@media screen {
font-weight: 400;
nested {
property: value;
}
}
}
}
}
}
}
//another long combination of supports and media
@media print {
@media (max-size: 2px) {
.in1 {
stay: here;
@supports not (-webkit-font-smoothing: subpixel-antialiased) {
.in2 & {
@supports (whatever: something) {
property: value;
}
}
}
}
}
}
//called from mixin
.nestedSupportsMixin() {
font-weight: 300;
-webkit-font-smoothing: subpixel-antialiased;
@supports not (-webkit-font-smoothing: subpixel-antialiased) {
font-weight: 400;
nested {
property: value;
}
}
}
html {
.nestedSupportsMixin;
}
// selectors should not propagate into all directive types
.onTop {
@font-face {
font-family: something;
src: made-up-url;
}
@keyframes "textscale" {
0% { font-size : 1em; }
100% { font-size : 2em; }
}
animation : "textscale";
font-family : something;
}

1
node_modules/less/test/less-bom/empty.less generated vendored Normal file
View File

@@ -0,0 +1 @@


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

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