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

[CSS] Setting multiple background images (on a region): incorrect z-ordering

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 9
    • 8u20, 8u25
    • javafx
    • Linux 3.2.0-4-amd64 ; Debian 7.4 ; Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
      Windows 7 ; Java(TM) SE Runtime Environment (build 1.8.0_20-b26)

      I'm using multiple background images in a region, using following CSS attributes:

       -fx-background-image: url('ui/background.png'), url('ui/left.png'), url('ui/right.png') ;
       -fx-background-position: center, left, right ;
       -fx-background-repeat: repeat-x, no-repeat, no-repeat;

      This works well, but, according to CSS3 :
      "The first image in the list is the layer closest to the user, the next one is painted behind the first, and so on. [...]"
      See : http://www.w3.org/TR/css3-background/#layering

      The behavior in JavaFX is incorrect: the first background image appears to be the "lowest" one, but should be on top...

            jgiles Jonathan Giles
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: