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

[CSS] Absolute URL in stylesheet does not work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u25
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Labels:
    • Environment:

      Win64 8u25

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: