Skip to content

Commit fd34d4b

Browse files
committed
Add more empty Custom Properties cases
1 parent 00d8e3f commit fd34d4b

File tree

2 files changed

+84
-11
lines changed

2 files changed

+84
-11
lines changed

cases/custom-properties.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
--round-block: (1, 2, 3);
1515

1616
--empty: ;
17+
--empty2: /**/;
18+
--empty3: !important;
19+
--empty4:/**/ !important;
1720

1821
--bracket-block: {1, 2, 3};
1922
--JSON: [1, "2", {"three": {"a":1}}, [4]];

cases/custom-properties.json

Lines changed: 81 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,31 @@
258258
},
259259
{
260260
"raws": {
261-
"before": "\n\n ",
262-
"between": ": "
261+
"before": "\n ",
262+
"between": ":"
263+
},
264+
"type": "decl",
265+
"source": {
266+
"start": {
267+
"line": 17,
268+
"column": 3
269+
},
270+
"input": {
271+
"file": "custom-properties.css"
272+
},
273+
"end": {
274+
"line": 17,
275+
"column": 17
276+
}
277+
},
278+
"prop": "--empty2",
279+
"value": " /**/"
280+
},
281+
{
282+
"raws": {
283+
"before": "\n ",
284+
"between": ":",
285+
"important": "!important"
263286
},
264287
"type": "decl",
265288
"source": {
@@ -272,6 +295,53 @@
272295
},
273296
"end": {
274297
"line": 18,
298+
"column": 23
299+
}
300+
},
301+
"prop": "--empty3",
302+
"important": true,
303+
"value": " "
304+
},
305+
{
306+
"raws": {
307+
"before": "\n ",
308+
"between": ":",
309+
"important": "!important"
310+
},
311+
"type": "decl",
312+
"source": {
313+
"start": {
314+
"line": 19,
315+
"column": 3
316+
},
317+
"input": {
318+
"file": "custom-properties.css"
319+
},
320+
"end": {
321+
"line": 19,
322+
"column": 27
323+
}
324+
},
325+
"prop": "--empty4",
326+
"important": true,
327+
"value": "/**/ "
328+
},
329+
{
330+
"raws": {
331+
"before": "\n\n ",
332+
"between": ": "
333+
},
334+
"type": "decl",
335+
"source": {
336+
"start": {
337+
"line": 21,
338+
"column": 3
339+
},
340+
"input": {
341+
"file": "custom-properties.css"
342+
},
343+
"end": {
344+
"line": 21,
275345
"column": 29
276346
}
277347
},
@@ -286,14 +356,14 @@
286356
"type": "decl",
287357
"source": {
288358
"start": {
289-
"line": 19,
359+
"line": 22,
290360
"column": 3
291361
},
292362
"input": {
293363
"file": "custom-properties.css"
294364
},
295365
"end": {
296-
"line": 19,
366+
"line": 22,
297367
"column": 44
298368
}
299369
},
@@ -308,14 +378,14 @@
308378
"type": "decl",
309379
"source": {
310380
"start": {
311-
"line": 20,
381+
"line": 23,
312382
"column": 3
313383
},
314384
"input": {
315385
"file": "custom-properties.css"
316386
},
317387
"end": {
318-
"line": 20,
388+
"line": 23,
319389
"column": 53
320390
}
321391
},
@@ -332,7 +402,7 @@
332402
"file": "custom-properties.css"
333403
},
334404
"end": {
335-
"line": 21,
405+
"line": 24,
336406
"column": 1
337407
}
338408
},
@@ -355,14 +425,14 @@
355425
"type": "decl",
356426
"source": {
357427
"start": {
358-
"line": 23,
428+
"line": 26,
359429
"column": 7
360430
},
361431
"input": {
362432
"file": "custom-properties.css"
363433
},
364434
"end": {
365-
"line": 23,
435+
"line": 26,
366436
"column": 11
367437
}
368438
},
@@ -372,14 +442,14 @@
372442
],
373443
"source": {
374444
"start": {
375-
"line": 23,
445+
"line": 26,
376446
"column": 1
377447
},
378448
"input": {
379449
"file": "custom-properties.css"
380450
},
381451
"end": {
382-
"line": 23,
452+
"line": 26,
383453
"column": 12
384454
}
385455
},

0 commit comments

Comments
 (0)