Skip to content

Commit 927e8c5

Browse files
committed
Fix position in empty Custom Properties case
1 parent f4c8bb3 commit 927e8c5

2 files changed

Lines changed: 50 additions & 2 deletions

File tree

cases/custom-properties.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@
2626
:root{--a:1}
2727

2828
.semicolon-less {--empty-end:/**/ }
29+
30+
.empty{--a: }

cases/custom-properties.json

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,9 @@
473473
"column": 18
474474
},
475475
"end": {
476-
"line": 14,
477-
"column": null
476+
"offset": 525,
477+
"line": 28,
478+
"column": 33
478479
}
479480
},
480481
"prop": "--empty-end",
@@ -494,6 +495,51 @@
494495
}
495496
},
496497
"selector": ".semicolon-less"
498+
},
499+
{
500+
"raws": {
501+
"before": "\n\n",
502+
"between": "",
503+
"semicolon": false,
504+
"after": ""
505+
},
506+
"type": "rule",
507+
"nodes": [
508+
{
509+
"raws": {
510+
"before": "",
511+
"between": ":"
512+
},
513+
"type": "decl",
514+
"source": {
515+
"start": {
516+
"offset": 537,
517+
"line": 30,
518+
"column": 8
519+
},
520+
"end": {
521+
"offset": 540,
522+
"line": 30,
523+
"column": 11
524+
}
525+
},
526+
"prop": "--a",
527+
"value": " "
528+
}
529+
],
530+
"source": {
531+
"start": {
532+
"offset": 530,
533+
"line": 30,
534+
"column": 1
535+
},
536+
"end": {
537+
"offset": 542,
538+
"line": 30,
539+
"column": 13
540+
}
541+
},
542+
"selector": ".empty"
497543
}
498544
],
499545
"source": {

0 commit comments

Comments
 (0)