CSS handler should handle (reject) recursive definitions

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P5
    • None
    • Affects Version/s: fx1.3, fx2.0
    • Component/s: javafx
    • Environment:

      > javafx -version
      javafx 1.3.0_b412
      French Windows XP Pro SP3, Java 1.6.0_18

      Assuming SoMa = 1.3 (still in Unreleased Versions)

      Playing a bit with the StyleEditor http://www.javafx.com/samples/StyleEditor/index.html I wanted to restore default border of TextBox so I put:
      .text-box
      {
        -fx-background: -fx-text-box-border;
      }
      in the custom stylesheet.
      The application stopped to react to my mouse clicks, except for some controls (ChoiceBox of styles).
      I found out that -fx-text-box-border was using -fx-background in its definition. I don't know if that's the issue, but it looks like a recursive CSS definition can lead to some kind of infinite loop.

            Assignee:
            David Grieve
            Reporter:
            Philippe Lhoste (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: