I get javaFx css parse error while defining new variables in css.
It perfectly runs ok with a given constant like: -fx-font-size: 10;
Here is the code:
.root {
tab-label-text-size: 10;
}
.label {
-fx-font-size: tab-label-text-size;
}
Whatever I tried, I couldnt get rid of this exception. I also used other variables like this and they also run ok.
Expected '' while parsing '-fx-font-size' at [9,19]
Maybe a bug in javaFx??
-fx-font-sizeproperty is inherited by default to your advantage tough.