Encountering a JavaFX CSS parse error when trying to define new variables in CSS.
It works fine with constants like: -fx-font-size: 10;
Check out the code snippet below:
.root {
tab-label-text-size: 10;
}
.label {
-fx-font-size: tab-label-text-size;
}
Despite various attempts, unable to resolve this exception. Other variables used similarly work without any issues.
Expected '' while parsing '-fx-font-size' at [9,19]
Potentially a bug in JavaFX?