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

url in CSS resolves to a relative path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • javafx
    • None

    Description

      Various Ensemble8 samples have CSS entries that use "url" to point to images. For example:

      -fx-background-image: url("/ensemble/samples/shared-resources/Curve-fitted-background.png");

      We were expecting the above url to start from the root when looking for the above file (i.e. we expected the file really to be at /ensemble/samples/shared-resources/Curve-fitted-background.png). But it looks like the url resolves to a path relative to a different root. It looks like the above ends up looking for a file at: /ensemble/samples/charts/area/curvefitted/ensemble/samples/shared-resources/Curve-fitted-background.png instead of just /ensemble/samples/shared-resources/Curve-fitted-background.png.

      I think the first part of the former path (the long path) is the location of the CSS file that has the url entry.

      Is it supposed to be this way?

      Attachments

        Issue Links

          Activity

            People

              dgrieve David Grieve
              dmasada Debra Masada (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: