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

CSS handler should handle (reject) recursive definitions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P5
    • None
    • fx1.3, fx2.0
    • javafx
    • > javafx -version
      javafx 1.3.0_b412
      French Windows XP Pro SP3, Java 1.6.0_18

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported: