@less/test-data 4.2.0 → 4.3.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.
@@ -23,7 +23,7 @@
23
23
  border: 1px solid grey;
24
24
  }
25
25
  }
26
- @container size (min-width: 60ch) {
26
+ @container size(min-width: 60ch) {
27
27
  .article--post header {
28
28
  grid-template-areas: "avatar name" "avatar headline";
29
29
  align-items: start;
@@ -118,7 +118,7 @@
118
118
  margin: 0.5em 0 0 0;
119
119
  }
120
120
  }
121
- @container card (inline-size > 30em) and style (--responsive: true) {
121
+ @container card (inline-size > 30em) and style(--responsive: true) {
122
122
  .card-content {
123
123
  grid-template-columns: 1fr 2fr;
124
124
  grid-template-rows: auto 1fr;
@@ -146,3 +146,98 @@
146
146
  margin: 0.5em 0 0 0;
147
147
  }
148
148
  }
149
+ .wrapper {
150
+ container-name: wrapper;
151
+ container-type: size;
152
+ }
153
+ @container wrapper (height < 100) {
154
+ a {
155
+ max-height: 100;
156
+ }
157
+ }
158
+ @container wrapper (height < 200) {
159
+ a {
160
+ max-height: 200;
161
+ }
162
+ }
163
+ @container wrapper (height < 300) {
164
+ a {
165
+ max-height: 300;
166
+ }
167
+ }
168
+ @media only screen and (min-width: 768px) {
169
+ @container (min-width: 500px) {
170
+ .primary-content {
171
+ font-size: 1rem;
172
+ }
173
+ }
174
+ }
175
+ @media only screen and (min-width: 768px) {
176
+ .media-1 {
177
+ font-size: 1.5rem;
178
+ }
179
+ @container (min-width: 500px) {
180
+ .primary-content {
181
+ font-size: 1rem;
182
+ }
183
+ }
184
+ }
185
+ @media only screen and (min-width: 768px) {
186
+ .media-1 {
187
+ font-size: 1.5rem;
188
+ }
189
+ @container (min-width: 500px) {
190
+ .primary-content {
191
+ font-size: 1rem;
192
+ }
193
+ }
194
+ .media-2 {
195
+ font-size: 2rem;
196
+ }
197
+ }
198
+ @media only screen and (min-width: 768px) {
199
+ .media-1 {
200
+ font-size: 1.5rem;
201
+ }
202
+ @container (min-width: 500px) {
203
+ .primary-content {
204
+ font-size: 1rem;
205
+ }
206
+ @media (hover: hover) {
207
+ font-size: 1.75rem;
208
+ }
209
+ }
210
+ .media-2 {
211
+ font-size: 2rem;
212
+ }
213
+ }
214
+ @media only screen and (min-width: 768px) {
215
+ .media-1 {
216
+ font-size: 1.5rem;
217
+ }
218
+ @container (min-width: 500px) {
219
+ .primary-content {
220
+ font-size: 1rem;
221
+ }
222
+ @media (hover: hover) {
223
+ font-size: 1.75rem;
224
+ @media not all and (hover: hover) {
225
+ color: limegreen;
226
+ }
227
+ .media-3 {
228
+ padding: 0.5rem;
229
+ }
230
+ }
231
+ }
232
+ .media-2 {
233
+ font-size: 2rem;
234
+ }
235
+ }
236
+ @container (min-width: 768px) {
237
+ @media only screen and (min-width: 768px) {
238
+ color: aliceblue;
239
+ }
240
+ .container-1 {
241
+ color: purple;
242
+ }
243
+ }
@@ -110,9 +110,13 @@
110
110
  min: 1pt;
111
111
  min: 3mm;
112
112
  min: min(1, 4ex, 2pt);
113
+ min: min(calc(1 + 1), 1);
114
+ min: min(var(--width), 802px);
113
115
  max: 3;
114
116
  max: 5em;
115
117
  max: max(5m, 3em);
118
+ max: min(var(--body-max-width), calc(100vw - 20px));
119
+ max: max(1, calc(1 + 1));
116
120
  max-native: max(10vw, 100px);
117
121
  percentage: 20%;
118
122
  color-quoted-digit: #dda0dd;
@@ -31,6 +31,11 @@ foo[attr="blah"] {
31
31
  this: works;
32
32
  }
33
33
  }
34
+ @media (min-width: 640px) {
35
+ .with-curly {
36
+ this: works;
37
+ }
38
+ }
34
39
  .test-rule-comment {
35
40
  --value: a /* { ; } */;
36
41
  --comment-within: ( /* okay?; comment; */ );
@@ -183,3 +183,9 @@ blank blank blank blank blank blank blank blank blank blank blank blank blank bl
183
183
  .first-level .second-level.active2 {
184
184
  content: '\2661';
185
185
  }
186
+ a:is(.b, :is(.c)) {
187
+ color: blue;
188
+ }
189
+ a:is(.b, :is(.c), :has(div)) {
190
+ color: red;
191
+ }
@@ -0,0 +1,55 @@
1
+ #nav {
2
+ transition: background-color 3.5s;
3
+ background-color: gray;
4
+ }
5
+ [popover]:popover-open {
6
+ opacity: 1;
7
+ transform: scaleX(1);
8
+ @starting-style {
9
+ opacity: 0;
10
+ transform: scaleX(0);
11
+ }
12
+ }
13
+ #target {
14
+ transition: background-color 1.5s;
15
+ background-color: green;
16
+ }
17
+ @starting-style {
18
+ #target {
19
+ background-color: transparent;
20
+ }
21
+ }
22
+ #source {
23
+ transition: background-color 2.5s;
24
+ background-color: red;
25
+ }
26
+ source:first {
27
+ opacity: 1;
28
+ transform: scaleX(1);
29
+ @starting-style {
30
+ opacity: 0;
31
+ transform: scaleX(0);
32
+ }
33
+ }
34
+ #footer {
35
+ color: yellow;
36
+ }
37
+ @starting-style {
38
+ #footer {
39
+ background-color: transparent;
40
+ }
41
+ }
42
+ nav > [popover]:popover-open {
43
+ opacity: 1;
44
+ transform: scaleX(1);
45
+ @starting-style {
46
+ padding: 10px 8px 6px 4px;
47
+ }
48
+ }
49
+ aside > [popover]:popover-open {
50
+ opacity: 1;
51
+ transform: scaleX(1);
52
+ @starting-style {
53
+ padding: 10px 20px 30px 40px;
54
+ }
55
+ }
@@ -69,3 +69,29 @@
69
69
  mul-px-2: 140px;
70
70
  mul-px-3: 140px;
71
71
  }
72
+ *,
73
+ ::before,
74
+ ::after {
75
+ --tw-pan-x: ;
76
+ --tw-pan-y: ;
77
+ --tw-pinch-zoom: ;
78
+ --tw-scroll-snap-strictness: proximity;
79
+ }
80
+ .radio_checked {
81
+ border-color: #fff;
82
+ }
83
+ div#apple {
84
+ color: blue;
85
+ }
86
+ div#banana {
87
+ color: blue;
88
+ }
89
+ div#cherry {
90
+ color: blue;
91
+ }
92
+ div#carrot {
93
+ color: blue;
94
+ }
95
+ div#potato {
96
+ color: blue;
97
+ }
@@ -1,3 +1,3 @@
1
- SyntaxError: media definitions require block statements after any features in {path}parse-error-media-no-block-1.less on line 1, column 24:
2
- 1 @media (extra: bracket)) {
3
- 2 body {
1
+ SyntaxError: media definitions require block statements after any features in {path}parse-error-media-no-block-1.less on line 1, column 24:
2
+ 1 @media (extra: bracket)) {
3
+ 2 body {
@@ -1,2 +1,2 @@
1
- SyntaxError: media definitions require block statements after any features in {path}parse-error-media-no-block-2.less on line 1, column 7:
2
- 1 @media
1
+ SyntaxError: media definitions require block statements after any features in {path}parse-error-media-no-block-2.less on line 1, column 7:
2
+ 1 @media
@@ -1,3 +1,3 @@
1
- SyntaxError: media definitions require block statements after any features in {path}parse-error-media-no-block-3.less on line 4, column 4:
2
- 3 font-size: 5000px;
3
- 4 }
1
+ SyntaxError: media definitions require block statements after any features in {path}parse-error-media-no-block-3.less on line 4, column 4:
2
+ 3 font-size: 5000px;
3
+ 4 }
@@ -178,3 +178,114 @@
178
178
  }
179
179
  }
180
180
  }
181
+
182
+ .wrapper {
183
+ container-name: wrapper;
184
+ container-type: size;
185
+ }
186
+
187
+ .my_mixin(@height) {
188
+ @container wrapper (height < @height) {
189
+ a {
190
+ max-height: @height;
191
+ }
192
+ }
193
+ }
194
+
195
+ .my_mixin(100);
196
+ .my_mixin(200);
197
+ .my_mixin(300);
198
+
199
+ @media only screen and (min-width: 768px) {
200
+ @container (min-width: 500px) {
201
+ .primary-content {
202
+ font-size: 1rem;
203
+ }
204
+ }
205
+ }
206
+
207
+ @media only screen and (min-width: 768px) {
208
+ .media-1 {
209
+ font-size: 1.5rem;
210
+ }
211
+
212
+ @container (min-width: 500px) {
213
+ .primary-content {
214
+ font-size: 1rem;
215
+ }
216
+ }
217
+ }
218
+
219
+ @media only screen and (min-width: 768px) {
220
+ .media-1 {
221
+ font-size: 1.5rem;
222
+ }
223
+
224
+ @container (min-width: 500px) {
225
+ .primary-content {
226
+ font-size: 1rem;
227
+ }
228
+ }
229
+
230
+ .media-2 {
231
+ font-size: 2rem;
232
+ }
233
+ }
234
+
235
+ @media only screen and (min-width: 768px) {
236
+ .media-1 {
237
+ font-size: 1.5rem;
238
+ }
239
+
240
+ @container (min-width: 500px) {
241
+ .primary-content {
242
+ font-size: 1rem;
243
+ }
244
+
245
+ @media (hover: hover) {
246
+ font-size: 1.75rem;
247
+ }
248
+ }
249
+
250
+ .media-2 {
251
+ font-size: 2rem;
252
+ }
253
+ }
254
+
255
+ @media only screen and (min-width: 768px) {
256
+ .media-1 {
257
+ font-size: 1.5rem;
258
+ }
259
+
260
+ @container (min-width: 500px) {
261
+ .primary-content {
262
+ font-size: 1rem;
263
+ }
264
+
265
+ @media (hover: hover) {
266
+ font-size: 1.75rem;
267
+
268
+ @media not all and (hover: hover) {
269
+ color: limegreen;
270
+ }
271
+
272
+ .media-3 {
273
+ padding: 0.5rem;
274
+ }
275
+ }
276
+ }
277
+
278
+ .media-2 {
279
+ font-size: 2rem;
280
+ }
281
+ }
282
+
283
+ @container (min-width: 768px) {
284
+ @media only screen and (min-width: 768px) {
285
+ color: aliceblue;
286
+ }
287
+
288
+ .container-1 {
289
+ color: purple;
290
+ }
291
+ }
@@ -59,7 +59,7 @@ div.ext5,
59
59
  }
60
60
  }
61
61
 
62
- .fuu:extend(.ext8.ext9 all) {}
62
+ .fuu:extend( .ext8.ext9 all) {}
63
63
  .buu:extend(.ext8 .ext9 all) {}
64
64
  .zap:extend(.ext8 + .ext9 all) {}
65
65
  .zoo:extend(.ext8 > .ext9 all) {}
@@ -117,9 +117,13 @@
117
117
  min: min(1pt, 3pt);
118
118
  min: min(1cm, 3mm);
119
119
  min: min(6em, 5, 4ex, 3, 2pt, 1);
120
+ min: min(calc(1 + 1), 1);
121
+ min: min(~'var(--width), 802px');
120
122
  max: max(1, 3);
121
123
  max: max(3em, 1em, 2em, 5em);
122
124
  max: max(1px, 2, 3em, 4, 5m, 6);
125
+ max: min(var(--body-max-width), calc(100vw - 20px));
126
+ max: max(1, calc(1 + 1));
123
127
  max-native: max(10vw, 100px);
124
128
  percentage: percentage((10px / 50));
125
129
  color-quoted-digit: color("#dda0dd");
@@ -22,7 +22,7 @@
22
22
  #container {
23
23
  color: black;
24
24
  .mixin();
25
- .mixout();
25
+ .mixout ();
26
26
  #theme > .mixin();
27
27
  }
28
28
 
@@ -43,6 +43,12 @@
43
43
  this: works;
44
44
  }
45
45
  }
46
+ @tablet: (min-width: @{size});
47
+ @media @tablet {
48
+ .with-curly {
49
+ this: works;
50
+ }
51
+ }
46
52
  // @todo - fix comment absorption after property
47
53
  .test-rule-comment {
48
54
  --value: a/* { ; } */;
@@ -200,3 +200,11 @@ blank blank blank blank blank blank blank blank blank blank blank blank blank bl
200
200
  &.active2:extend(.extend-this) { }
201
201
  }
202
202
  }
203
+
204
+ a:is(.b, :is(.c)) {
205
+ color: blue;
206
+ }
207
+
208
+ a:is(.b, :is(.c), :has(div)) {
209
+ color: red;
210
+ }
@@ -0,0 +1,74 @@
1
+ #nav {
2
+ transition: background-color 3.5s;
3
+ background-color: gray;
4
+ }
5
+
6
+ [popover]:popover-open {
7
+ opacity: 1;
8
+ transform: scaleX(1);
9
+
10
+ @starting-style {
11
+ opacity: 0;
12
+ transform: scaleX(0);
13
+ }
14
+ }
15
+
16
+ #target {
17
+ transition: background-color 1.5s;
18
+ background-color: green;
19
+ }
20
+
21
+ @starting-style {
22
+ #target {
23
+ background-color: transparent;
24
+ }
25
+ }
26
+
27
+ #source {
28
+ transition: background-color 2.5s;
29
+ background-color: red;
30
+ }
31
+
32
+ source:first {
33
+ opacity: 1;
34
+ transform: scaleX(1);
35
+
36
+ @starting-style {
37
+ opacity: 0;
38
+ transform: scaleX(0);
39
+ }
40
+ }
41
+
42
+ #footer {
43
+ color: yellow;
44
+ }
45
+
46
+ @starting-style {
47
+ #footer {
48
+ background-color: transparent;
49
+ }
50
+ }
51
+
52
+ nav > [popover]:popover-open {
53
+ opacity: 1;
54
+ transform: scaleX(1);
55
+
56
+ @starting-style {
57
+ padding+_: 10px;
58
+ padding+_: 8px;
59
+ padding+_: 6px;
60
+ padding+_: 4px;
61
+ }
62
+ }
63
+
64
+ aside > [popover]:popover-open {
65
+ opacity: 1;
66
+ transform: scaleX(1);
67
+
68
+ @starting-style {
69
+ // vector math
70
+ each(1 2 3 4, {
71
+ padding+_: (@value * 10px);
72
+ });
73
+ }
74
+ }
@@ -125,3 +125,37 @@
125
125
  mul-px-3: ((@px * 1) * @cm);
126
126
  }
127
127
  }
128
+
129
+ *, ::before, ::after {
130
+ --tw-pan-x: ;
131
+ --tw-pan-y: ;
132
+ --tw-pinch-zoom: ;
133
+ --tw-scroll-snap-strictness: proximity;
134
+ }
135
+
136
+ @a1: 1px;
137
+ @b2: 2px;
138
+ @c3: @a1 + @b2;
139
+
140
+ @radio-cls: radio;
141
+ @radio-cls-checked: @{radio-cls}_checked;
142
+
143
+ .@{radio-cls-checked} {
144
+ border-color: #fff;
145
+ }
146
+
147
+ @items:
148
+ // Fruit
149
+ apple,
150
+ banana,
151
+ cherry,
152
+ // Vegetables
153
+ carrot,
154
+ potato,
155
+ ;
156
+
157
+ each(@items, {
158
+ div#@{value} {
159
+ color: blue;
160
+ }
161
+ })
package/package.json CHANGED
@@ -3,15 +3,12 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "4.2.0",
6
+ "version": "4.3.0",
7
7
  "description": "Less files and CSS results",
8
- "author": {
9
- "name": "Alexis Sellier",
10
- "email": "self@cloudhead.net"
11
- },
8
+ "author": "Alexis Sellier <self@cloudhead.net>",
12
9
  "contributors": [
13
10
  "The Core Less Team"
14
11
  ],
15
12
  "license": "Apache-2.0",
16
13
  "gitHead": "1df9072ee9ebdadc791bf35dfb1dbc3ef9f1948f"
17
- }
14
+ }