File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
test/com/inet/lib/less/samples/general Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -1334,7 +1334,7 @@ private static boolean isIdentifier( StringBuilder builder ) {
13341334 ch = builder .charAt ( i ++ );
13351335 continue FIRST ;
13361336 }
1337- return false ;
1337+ return true ; // special case of properties that starts with two minus letters. see https://developer.mozilla.org/de/docs/Web/CSS/var
13381338 case 'U' :
13391339 if ( builder .length () > 1 && builder .charAt ( 1 ) == '+' ) {
13401340 //unicode-range
Original file line number Diff line number Diff line change 2626 calcCompact : calc (100% -98px );
2727 calcVariable : calc (90% -10px );
2828}
29+ : root {
30+ --main-bg-color : pink;
31+ }
32+ body {
33+ background-color : var (--main-bg-color );
34+ }
Original file line number Diff line number Diff line change 2929 @a : 90% ;
3030 @b : 10px ;
3131 calcVariable: calc (@a - @b );
32+ }
33+ :root {
34+ --main-bg-color : pink ;
35+ }
36+ body {
37+ background-color : var (--main-bg-color );
3238}
You can’t perform that action at this time.
0 commit comments