@less/test-data 3.12.2 → 4.2.0
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/css/_main/colors.css +6 -6
- package/css/_main/colors2.css +6 -0
- package/css/_main/container.css +148 -0
- package/css/_main/css-3.css +5 -10
- package/css/_main/css-guards.css +1 -1
- package/css/_main/detached-rulesets.css +4 -4
- package/css/_main/extend-chaining.css +2 -2
- package/css/_main/extend-media.css +2 -2
- package/css/_main/functions.css +14 -0
- package/css/_main/impor.css +1 -0
- package/css/_main/import-remote.css +1 -1
- package/css/_main/javascript.css +3 -3
- package/css/_main/media.css +53 -5
- package/css/_main/mixin-noparens.css +7 -0
- package/css/_main/mixins-guards-default-func.css +4 -4
- package/css/_main/permissive-parse.css +9 -0
- package/css/_main/plugi.css +1 -0
- package/css/_main/selectors.css +19 -4
- package/css/math/parens-division/mixins-args.css +0 -5
- package/css/math/parens-division/parens.css +5 -0
- package/css/math/strict/mixins-args.css +0 -5
- package/css/math/strict/parens.css +5 -0
- package/css/namespacing/namespacing-8.css +10 -0
- package/errors/eval/color-func-invalid-color-2.txt +1 -1
- package/errors/eval/color-func-invalid-color.txt +1 -1
- package/errors/eval/css-guard-default-func.txt +1 -1
- package/errors/eval/functions-1.txt +1 -1
- package/errors/eval/functions-4-call.txt +1 -1
- package/errors/eval/mixin-not-visible-in-scope-1.less +1 -1
- package/errors/eval/mixin-not-visible-in-scope-1.txt +1 -1
- package/errors/eval/percentage-non-number-argument.txt +1 -1
- package/errors/eval/recursive-variable.txt +1 -1
- package/errors/eval/root-func-undefined-1.txt +1 -1
- package/errors/eval/root-func-undefined-2.txt +1 -1
- package/errors/eval/svg-gradient1.txt +1 -1
- package/errors/eval/svg-gradient2.txt +1 -1
- package/errors/eval/svg-gradient3.txt +1 -1
- package/errors/eval/svg-gradient4.txt +1 -1
- package/errors/eval/svg-gradient5.txt +1 -1
- package/errors/eval/svg-gradient6.txt +1 -1
- package/errors/eval/unit-function.txt +1 -1
- package/less/_main/colors.less +6 -6
- package/less/_main/colors2.less +6 -0
- package/less/_main/container.less +180 -0
- package/less/_main/css-3.less +5 -6
- package/less/_main/css-escapes.less +1 -1
- package/less/_main/css-guards.less +1 -1
- package/less/_main/detached-rulesets.less +4 -4
- package/less/_main/directives-bubling.less +1 -1
- package/less/_main/extend-chaining.less +2 -2
- package/less/_main/extend-media.less +2 -2
- package/less/_main/extract-and-length.less +2 -2
- package/less/_main/functions.less +23 -4
- package/less/_main/impor.less +5 -0
- package/less/_main/import/import-and-relative-paths-test.less +2 -2
- package/less/_main/import-reference-issues/comments-2991.less +25 -0
- package/less/_main/import-reference-issues.less +3 -0
- package/less/_main/import-remote.less +2 -2
- package/less/_main/import.less +1 -1
- package/less/_main/javascript.less +3 -3
- package/less/_main/media.less +64 -6
- package/less/_main/mixin-noparens.less +9 -0
- package/less/_main/mixins-closure.less +3 -3
- package/less/_main/mixins-guards-default-func.less +5 -5
- package/less/_main/mixins-guards.less +2 -2
- package/less/_main/mixins-important.less +1 -1
- package/less/_main/mixins-interpolated.less +7 -7
- package/less/_main/mixins.less +17 -17
- package/less/_main/permissive-parse.less +6 -1
- package/less/_main/plugi.less +5 -0
- package/less/_main/scope.less +2 -2
- package/less/_main/selectors.less +23 -5
- package/less/_main/urls.less +2 -2
- package/less/import-redirect/import-redirect.less +3 -0
- package/less/js-type-errors/js-type-error-2.txt +4 -0
- package/less/js-type-errors/js-type-error.less +3 -0
- package/less/js-type-errors/js-type-error.txt +4 -0
- package/less/math/parens-division/media-math.less +1 -1
- package/less/math/parens-division/mixins-args.less +3 -7
- package/less/math/parens-division/parens.less +6 -0
- package/less/math/strict/mixins-args.less +3 -7
- package/less/math/strict/parens.less +6 -0
- package/less/namespacing/namespacing-3.less +1 -1
- package/less/namespacing/namespacing-4.less +1 -1
- package/less/namespacing/namespacing-8.less +31 -0
- package/less/sourcemaps-variable-selector/basic.less +5 -0
- package/less/sourcemaps-variable-selector/vars.less +3 -0
- package/package.json +2 -2
- package/css/3rd-party/uikit.css +0 -8955
- package/css/math/strict-legacy/css.css +0 -95
- package/css/math/strict-legacy/media-math.css +0 -10
- package/css/math/strict-legacy/mixins-args.css +0 -163
- package/css/math/strict-legacy/parens.css +0 -40
- package/errors/eval/javascript-error.less +0 -3
- package/errors/eval/javascript-error.txt +0 -4
- package/less/3rd-party/uikit.less +0 -1
- package/less/math/strict-legacy/css.less +0 -108
- package/less/math/strict-legacy/media-math.less +0 -9
- package/less/math/strict-legacy/mixins-args.less +0 -263
- package/less/math/strict-legacy/parens.less +0 -50
- /package/css/{no-strict-math → math/always}/mixins-guards.css +0 -0
- /package/css/{no-strict-math → math/always}/no-sm-operations.css +0 -0
- /package/css/{legacy/legacy.css → units/no-strict/no-strict.css} +0 -0
- /package/css/{strict-units → units/strict}/strict-units.css +0 -0
- /package/less/{no-strict-math → math/always}/mixins-guards.less +0 -0
- /package/less/{no-strict-math → math/always}/no-sm-operations.less +0 -0
- /package/less/{legacy/legacy.less → units/no-strict/no-strict.less} +0 -0
- /package/less/{strict-units → units/strict}/strict-units.less +0 -0
package/css/_main/colors.css
CHANGED
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
#grey {
|
|
44
44
|
color: #c8c8c8;
|
|
45
45
|
}
|
|
46
|
-
#
|
|
47
|
-
color: #
|
|
46
|
+
#aa3333 {
|
|
47
|
+
color: #aa3333;
|
|
48
48
|
}
|
|
49
|
-
#
|
|
50
|
-
color: hsl(0,
|
|
49
|
+
#bb8080 {
|
|
50
|
+
color: hsl(0, 30%, 62%);
|
|
51
51
|
}
|
|
52
|
-
#
|
|
53
|
-
color: hsl(
|
|
52
|
+
#ccff00 {
|
|
53
|
+
color: hsl(72, 100%, 50%);
|
|
54
54
|
}
|
|
55
55
|
.lightenblue {
|
|
56
56
|
color: #3333ff;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
.widget.discoverresults,
|
|
2
|
+
.widget.repositoriesresults {
|
|
3
|
+
container-type: inline-size;
|
|
4
|
+
}
|
|
5
|
+
@container (max-width: 350px) {
|
|
6
|
+
.widget.discoverresults .cite .wdr-authors,
|
|
7
|
+
.widget.repositoriesresults .cite .wdr-authors {
|
|
8
|
+
display: none;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
@container (min-width: 700px) {
|
|
12
|
+
.card h2 {
|
|
13
|
+
font-size: 2em;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
@container sidebar (min-width: 700px) {
|
|
17
|
+
.card {
|
|
18
|
+
font-size: 2em;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
@container (min-width: 60ch) {
|
|
22
|
+
.container:nth-child(odd) > article {
|
|
23
|
+
border: 1px solid grey;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
@container size (min-width: 60ch) {
|
|
27
|
+
.article--post header {
|
|
28
|
+
grid-template-areas: "avatar name" "avatar headline";
|
|
29
|
+
align-items: start;
|
|
30
|
+
}
|
|
31
|
+
.article--post {
|
|
32
|
+
grid-template-areas: "header header" ". stats" ". content";
|
|
33
|
+
grid-auto-columns: 5rem 1fr;
|
|
34
|
+
column-gap: 1rem;
|
|
35
|
+
}
|
|
36
|
+
.article--post__title {
|
|
37
|
+
font-size: 1.75rem;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.card h2 {
|
|
41
|
+
container-type: inline-size;
|
|
42
|
+
margin: 0;
|
|
43
|
+
padding: 10px;
|
|
44
|
+
}
|
|
45
|
+
@container (min-width: 500px) {
|
|
46
|
+
.card h2 .card-content {
|
|
47
|
+
grid-template-columns: 1fr 2fr;
|
|
48
|
+
grid-template-rows: auto 1fr;
|
|
49
|
+
align-items: start;
|
|
50
|
+
column-gap: 20px;
|
|
51
|
+
}
|
|
52
|
+
.card h2 .card-content h2 {
|
|
53
|
+
padding: 0;
|
|
54
|
+
margin: 0.5em 0 0 0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
@container (width >= 500px) and (height >= 500px) {
|
|
58
|
+
.card-content h2 {
|
|
59
|
+
padding: 0;
|
|
60
|
+
margin: 0.5em 0 0 0;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
@container (width > 760px) not (height > 670px) {
|
|
64
|
+
.card-content h2 {
|
|
65
|
+
padding: 0;
|
|
66
|
+
margin: 0.5em 0 0 0;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
@container not (height <= 1080px) {
|
|
70
|
+
.card-content h2 {
|
|
71
|
+
padding: 0;
|
|
72
|
+
margin: 0.5em 0 0 0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
@container (width < 500px) or (height < 500px) {
|
|
76
|
+
.card-content h2 {
|
|
77
|
+
padding: 0;
|
|
78
|
+
margin: 0.5em 0 0 0;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
@container (width < 500px) or (height < 500px) and (inline-size >= 0px) {
|
|
82
|
+
.card-content p {
|
|
83
|
+
padding: 0;
|
|
84
|
+
}
|
|
85
|
+
.card-content p h2 {
|
|
86
|
+
margin: 0.5em 0 0 0;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
@container my-page-layout (width < 500px) or (height < 500px) and (block-size > 12em) {
|
|
90
|
+
.card-content p {
|
|
91
|
+
padding: 0;
|
|
92
|
+
}
|
|
93
|
+
.card-content p h2 {
|
|
94
|
+
margin: 0.5em 0 0 0;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
@container (width < 500px) or (height < 500px) and (aspect-ratio: 3/2) {
|
|
98
|
+
.card-content p {
|
|
99
|
+
padding: 0;
|
|
100
|
+
}
|
|
101
|
+
.card-content p h2 {
|
|
102
|
+
margin: 0.5em 0 0 0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
@container (width < 500px) or (height < 500px) and (orientation: portrait) {
|
|
106
|
+
.card-content p {
|
|
107
|
+
padding: 0;
|
|
108
|
+
}
|
|
109
|
+
.card-content p h2 {
|
|
110
|
+
margin: 0.5em 0 0 0;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
@container card (inline-size > 30em) {
|
|
114
|
+
.card-content p {
|
|
115
|
+
padding: 0;
|
|
116
|
+
}
|
|
117
|
+
.card-content p h2 {
|
|
118
|
+
margin: 0.5em 0 0 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
@container card (inline-size > 30em) and style (--responsive: true) {
|
|
122
|
+
.card-content {
|
|
123
|
+
grid-template-columns: 1fr 2fr;
|
|
124
|
+
grid-template-rows: auto 1fr;
|
|
125
|
+
align-items: start;
|
|
126
|
+
column-gap: 20px;
|
|
127
|
+
}
|
|
128
|
+
.card-content h2 {
|
|
129
|
+
padding: 0;
|
|
130
|
+
margin: 0.5em 0 0 0;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
@container (width < 500px) or (height < 500px) and (orientation: portrait) {
|
|
134
|
+
.card-content p {
|
|
135
|
+
padding: 0;
|
|
136
|
+
}
|
|
137
|
+
.card-content p h2 {
|
|
138
|
+
margin: 0.5em 0 0 0;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
@container my-page-layout (width < 500px) or (height < 500px) and (block-size > 12em) {
|
|
142
|
+
.card-content p {
|
|
143
|
+
padding: 0;
|
|
144
|
+
}
|
|
145
|
+
.card-content p h2 {
|
|
146
|
+
margin: 0.5em 0 0 0;
|
|
147
|
+
}
|
|
148
|
+
}
|
package/css/_main/css-3.css
CHANGED
|
@@ -95,9 +95,6 @@ foo|h1 {
|
|
|
95
95
|
foo|* {
|
|
96
96
|
color: yellow;
|
|
97
97
|
}
|
|
98
|
-
|h1 {
|
|
99
|
-
color: red;
|
|
100
|
-
}
|
|
101
98
|
*|h1 {
|
|
102
99
|
color: green;
|
|
103
100
|
}
|
|
@@ -115,20 +112,20 @@ h1 {
|
|
|
115
112
|
::distributed(input::placeholder) {
|
|
116
113
|
color: #b3b3b3;
|
|
117
114
|
}
|
|
118
|
-
.shadow
|
|
119
|
-
body
|
|
115
|
+
.shadow > .dom,
|
|
116
|
+
body > .shadow {
|
|
120
117
|
display: done;
|
|
121
118
|
}
|
|
122
119
|
:host(.sel .a),
|
|
123
120
|
:host-context(.sel .b),
|
|
124
|
-
.sel
|
|
121
|
+
.sel > .b,
|
|
125
122
|
::content .sel {
|
|
126
123
|
type: shadow-dom;
|
|
127
124
|
}
|
|
128
|
-
|
|
125
|
+
* b {
|
|
129
126
|
c: 'd';
|
|
130
127
|
}
|
|
131
|
-
|
|
128
|
+
* b[e] {
|
|
132
129
|
f: 'g';
|
|
133
130
|
}
|
|
134
131
|
#issue2066 {
|
|
@@ -139,8 +136,6 @@ body ^^ .shadow {
|
|
|
139
136
|
symbols: ‣;
|
|
140
137
|
suffix: " ";
|
|
141
138
|
}
|
|
142
|
-
@-ms-viewport {
|
|
143
|
-
}
|
|
144
139
|
@unknown foo 42 (bar) {
|
|
145
140
|
x {
|
|
146
141
|
y: z;
|
package/css/_main/css-guards.css
CHANGED
|
@@ -46,22 +46,22 @@ html.lt-ie9 header {
|
|
|
46
46
|
.without-mixins {
|
|
47
47
|
b: 1;
|
|
48
48
|
}
|
|
49
|
-
@media (orientation: portrait) and tv {
|
|
49
|
+
@media (orientation: portrait) and (tv) {
|
|
50
50
|
.my-selector {
|
|
51
51
|
background-color: black;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
@media (orientation: portrait) and widescreen and print and tv {
|
|
54
|
+
@media (orientation: portrait) and (widescreen) and (print) and (tv) {
|
|
55
55
|
.triple-wrapped-mq {
|
|
56
56
|
triple: true;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
@media (orientation: portrait) and widescreen and tv {
|
|
59
|
+
@media (orientation: portrait) and (widescreen) and (tv) {
|
|
60
60
|
.triple-wrapped-mq {
|
|
61
61
|
triple: true;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
@media (orientation: portrait) and tv {
|
|
64
|
+
@media (orientation: portrait) and (tv) {
|
|
65
65
|
.triple-wrapped-mq {
|
|
66
66
|
triple: true;
|
|
67
67
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
.all .ext2 {
|
|
3
3
|
background: black;
|
|
4
4
|
}
|
|
5
|
-
@media tv {
|
|
5
|
+
@media (tv) {
|
|
6
6
|
.ext1 .ext3,
|
|
7
7
|
.tv-lowres .ext3,
|
|
8
8
|
.all .ext3 {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
background: blue;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
@media tv and hires {
|
|
15
|
+
@media (tv) and (hires) {
|
|
16
16
|
.ext1 .ext4,
|
|
17
17
|
.tv-hires .ext4,
|
|
18
18
|
.all .ext4 {
|
package/css/_main/functions.css
CHANGED
|
@@ -109,8 +109,11 @@
|
|
|
109
109
|
min: 5;
|
|
110
110
|
min: 1pt;
|
|
111
111
|
min: 3mm;
|
|
112
|
+
min: min(1, 4ex, 2pt);
|
|
112
113
|
max: 3;
|
|
113
114
|
max: 5em;
|
|
115
|
+
max: max(5m, 3em);
|
|
116
|
+
max-native: max(10vw, 100px);
|
|
114
117
|
percentage: 20%;
|
|
115
118
|
color-quoted-digit: #dda0dd;
|
|
116
119
|
color-quoted-keyword: #dda0dd;
|
|
@@ -139,6 +142,8 @@
|
|
|
139
142
|
mixt: rgba(255, 0, 0, 0.5);
|
|
140
143
|
}
|
|
141
144
|
#built-in .is-a {
|
|
145
|
+
rules-defined: true;
|
|
146
|
+
foo-defined: false;
|
|
142
147
|
ruleset: true;
|
|
143
148
|
color: true;
|
|
144
149
|
color1: true;
|
|
@@ -232,3 +237,12 @@ html {
|
|
|
232
237
|
color: green;
|
|
233
238
|
color: purple;
|
|
234
239
|
}
|
|
240
|
+
.paren-escapes {
|
|
241
|
+
list-1: 1, 2, 3;
|
|
242
|
+
length-1: 3;
|
|
243
|
+
item-1: 4;
|
|
244
|
+
item-2: 5;
|
|
245
|
+
item-3: 6;
|
|
246
|
+
list-2: 1, 2, 3;
|
|
247
|
+
list-3: 7, 8, 9;
|
|
248
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@impor "impor-typo-dont-parse-as-@import.less";
|
package/css/_main/javascript.css
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
ary1: "1, 2, 3";
|
|
24
24
|
}
|
|
25
25
|
.test-rule-tran {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
one: opacity 0.3s ease-in 0.3s, max-height 0.6s linear, margin-bottom 0.4s linear;
|
|
27
|
+
two: [opacity 0.3s ease-in 0.3s, max-height 0.6s linear, margin-bottom 0.4s linear];
|
|
28
|
+
three: opacity 0.3s ease-in 0.3s, max-height 0.6s linear, margin-bottom 0.4s linear;
|
|
29
29
|
}
|
package/css/_main/media.css
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
width: 500px;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
@media a and b {
|
|
56
|
+
@media a and (b) {
|
|
57
57
|
.first .second .third {
|
|
58
58
|
width: 300px;
|
|
59
59
|
}
|
|
@@ -61,17 +61,17 @@
|
|
|
61
61
|
width: 3;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
@media a and b and c {
|
|
64
|
+
@media a and (b) and (c) {
|
|
65
65
|
.first .second .third {
|
|
66
66
|
width: 500px;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
@media a, b and c {
|
|
69
|
+
@media a, (b) and (c) {
|
|
70
70
|
.body {
|
|
71
71
|
width: 95%;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
@media a and x, b and c and x, a and y, b and c and y {
|
|
74
|
+
@media a and (x), (b) and (c) and (x), a and (y), (b) and (c) and (y) {
|
|
75
75
|
.body {
|
|
76
76
|
width: 100%;
|
|
77
77
|
}
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
display: table-cell;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
@media all and tv {
|
|
214
|
+
@media all and (tv) {
|
|
215
215
|
.all-and-tv-variables {
|
|
216
216
|
var: all-and-tv;
|
|
217
217
|
}
|
|
@@ -221,3 +221,51 @@
|
|
|
221
221
|
foo: bar;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
+
@media screen and (color), projection and (color) {
|
|
225
|
+
.selector {
|
|
226
|
+
color: #eee;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
@media not (width <= -100px) {
|
|
230
|
+
body {
|
|
231
|
+
background: green;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
@media (height > -100px) {
|
|
235
|
+
body {
|
|
236
|
+
background: green;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
@media not (resolution: -300dpi) {
|
|
240
|
+
body {
|
|
241
|
+
background: green;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
@media (example, all), speech {
|
|
245
|
+
body {
|
|
246
|
+
background: green;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
@media (min-orientation: portrait) {
|
|
250
|
+
body {
|
|
251
|
+
background: green;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
@media print and (min-resolution: 118dpcm) {
|
|
255
|
+
body {
|
|
256
|
+
background: green;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
@media (200px <= width <= 500px) {
|
|
260
|
+
.test-range-syntax {
|
|
261
|
+
padding: 0;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
.selector {
|
|
265
|
+
color: #eee;
|
|
266
|
+
}
|
|
267
|
+
@media (200px <= width <= 500px) {
|
|
268
|
+
.selector .test-range-syntax {
|
|
269
|
+
padding: 0;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
@@ -112,18 +112,18 @@ guard-default-multi-4 {
|
|
|
112
112
|
always: 2;
|
|
113
113
|
case: 2;
|
|
114
114
|
}
|
|
115
|
-
guard-default-not-
|
|
115
|
+
guard-default-not-ambiguous-2 {
|
|
116
116
|
case: 1;
|
|
117
117
|
not-default: 2;
|
|
118
118
|
}
|
|
119
|
-
guard-default-not-
|
|
119
|
+
guard-default-not-ambiguous-3 {
|
|
120
120
|
case: 1;
|
|
121
121
|
not-default-1: 2;
|
|
122
122
|
not-default-2: 2;
|
|
123
123
|
}
|
|
124
124
|
guard-default-scopes-3 {
|
|
125
|
-
|
|
125
|
+
three: when default;
|
|
126
126
|
}
|
|
127
127
|
guard-default-scopes-1 {
|
|
128
|
-
|
|
128
|
+
one: no condition;
|
|
129
129
|
}
|
|
@@ -35,3 +35,12 @@ foo[attr="blah"] {
|
|
|
35
35
|
--value: a /* { ; } */;
|
|
36
36
|
--comment-within: ( /* okay?; comment; */ );
|
|
37
37
|
}
|
|
38
|
+
.test-no-trailing-semicolon {
|
|
39
|
+
--value: foo;
|
|
40
|
+
}
|
|
41
|
+
.test-no-trailing-semicolon2 {
|
|
42
|
+
--value: foo;
|
|
43
|
+
}
|
|
44
|
+
.test-no-trailing-semicolon3 {
|
|
45
|
+
--value: foo;
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@plugi "plugi-typo-dont-parse-as-@plugin";
|
package/css/_main/selectors.css
CHANGED
|
@@ -133,16 +133,31 @@ p a span {
|
|
|
133
133
|
}
|
|
134
134
|
[prop],
|
|
135
135
|
[prop=10%],
|
|
136
|
-
[prop
|
|
136
|
+
[prop|="value3"],
|
|
137
137
|
[prop*="val3"],
|
|
138
138
|
[|prop~="val3"],
|
|
139
139
|
[*|prop$="val3"],
|
|
140
140
|
[ns|prop^="val3"],
|
|
141
|
-
[
|
|
142
|
-
[
|
|
143
|
-
[
|
|
141
|
+
[p^="val3"],
|
|
142
|
+
[p=3],
|
|
143
|
+
[p] {
|
|
144
144
|
attributes: yes;
|
|
145
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* https://www.w3.org/TR/selectors-4/#attribute-case
|
|
148
|
+
*/
|
|
149
|
+
a[href*="insensitive" i] {
|
|
150
|
+
color: cyan;
|
|
151
|
+
}
|
|
152
|
+
a[href*="cAsE" s] {
|
|
153
|
+
color: pink;
|
|
154
|
+
}
|
|
155
|
+
a[href*="less" I] {
|
|
156
|
+
background-color: silver;
|
|
157
|
+
}
|
|
158
|
+
a[href*="less" S] {
|
|
159
|
+
background-color: red;
|
|
160
|
+
}
|
|
146
161
|
/*
|
|
147
162
|
Large comment means chunk will be emitted after } which means chunk will begin with whitespace...
|
|
148
163
|
blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
RuntimeError:
|
|
1
|
+
RuntimeError: Error evaluating function `darken`: Argument cannot be evaluated to a color in {path}color-func-invalid-color-2.less on line 2, column 14:
|
|
2
2
|
1 // https://github.com/less/less.js/issues/3338
|
|
3
3
|
2 @base-color: darken(var(--baseColor, red), 50%);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
ArgumentError:
|
|
1
|
+
ArgumentError: Error evaluating function `color`: argument must be a color keyword or 3|4|6|8 digit hex e.g. #FFF in {path}color-func-invalid-color.less on line 2, column 10:
|
|
2
2
|
1 .test-rule {
|
|
3
3
|
2 color: color("NOT A COLOR");
|
|
4
4
|
3 }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
SyntaxError:
|
|
1
|
+
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:
|
|
2
2
|
1
|
|
3
3
|
2 selector when (default()) {
|
|
4
4
|
3 color: red;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
SyntaxError: Function 'test-undefined'
|
|
1
|
+
SyntaxError: Function 'test-undefined' did not return a root node in {path}functions-1.less on line 2, column 1:
|
|
2
2
|
1 @plugin "../../plugin/plugin-tree-nodes";
|
|
3
3
|
2 test-undefined();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
ArgumentError:
|
|
1
|
+
ArgumentError: Error evaluating function `percentage`: argument must be a number in {path}percentage-non-number-argument.less on line 2, column 15:
|
|
2
2
|
1 div {
|
|
3
3
|
2 percentage: percentage(16/17);
|
|
4
4
|
3 }
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
NameError:
|
|
1
|
+
NameError: Error evaluating function `darken`: Recursive variable definition for @bodyColor in {path}recursive-variable.less on line 1, column 13:
|
|
2
2
|
1 @bodyColor: darken(@bodyColor, 30%);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
SyntaxError: Function 'func'
|
|
1
|
+
SyntaxError: Function 'func' did not return a root node in {path}root-func-undefined-1.less on line 1, column 1:
|
|
2
2
|
1 func();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
SyntaxError: Function 'test-undefined'
|
|
1
|
+
SyntaxError: Function 'test-undefined' did not return a root node in {path}root-func-undefined-2.less on line 2, column 1:
|
|
2
2
|
1 @plugin "../../plugin/plugin-tree-nodes.js";
|
|
3
3
|
2 test-undefined();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
ArgumentError:
|
|
1
|
+
ArgumentError: Error evaluating function `svg-gradient`: svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center' in {path}svg-gradient1.less on line 2, column 6:
|
|
2
2
|
1 .a {
|
|
3
3
|
2 a: svg-gradient(horizontal, black, white);
|
|
4
4
|
3 }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
ArgumentError:
|
|
1
|
+
ArgumentError: Error evaluating function `svg-gradient`: svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list in {path}svg-gradient2.less on line 2, column 6:
|
|
2
2
|
1 .a {
|
|
3
3
|
2 a: svg-gradient(to bottom, black, orange, 45%, white);
|
|
4
4
|
3 }
|