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

[CSS] Absolute URL in stylesheet does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u40
    • 8u25
    • javafx
    • Win64 8u25

      In CSS I am trying to use this to access an image relative to the classpath root:

      -fx-background-image: url("/mint/css/report_16x16.png");

      That does not work, the image is not to be seen. It does work though when declaring the style like this:

      -fx-background-image: url("report_16x16.png");

      Actually, the CSS documentation does not seem to allow the former use but according to RT-21967 it should be available, too (since Lombard). See code example in first comment.

            kcr Kevin Rushforth
            wlehmann Werner Lehmann
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: