It is called -fx-text-fill if you want to set the fill of a text, but it is called -fx-background-color if you want to set the fill of a background. This is inconsistent, and I for one have a couple of times written -fx-background-fill and wondered why it did not work.
Please note that this could be changed in a backwards compatible manner. If you chose one naming pattern, say, -fx-text-fill and -fx-background-fill, you could simply have the parser accept -fx-background-color as a synonym and document the synonym as deprecated.
Please note that this could be changed in a backwards compatible manner. If you chose one naming pattern, say, -fx-text-fill and -fx-background-fill, you could simply have the parser accept -fx-background-color as a synonym and document the synonym as deprecated.