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

CSS transition is not started when initial value was not specified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx23
    • javafx
    • None
    • In Review

      When the initial value of a styleable property is not specified in a stylesheet, no transition is started:

          .button {
              transition: -fx-opacity 1s;
          }
          
          .button:hover {
              -fx-opacity: 0.5;
          }

      The expected behavior is that a transition is started in this case, since the default value of `-fx-opacity` is 1.

            mstrauss Michael Strauß
            mstrauss Michael Strauß
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: