Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8091052

CSS property naming inconsistency

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • javafx

      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.

            Unassigned Unassigned
            risaksen Randahl Isaksen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported: