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

border-image-slice as percentage is relative to the region size instead of image size

XMLWordPrintable

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

      According to BorderWidths javadoc "This value might be interpreted either as an literal value, or as a percentage of the width or height of the Region"
      (that what NGRegion implements)

      But according to our own CSS spec and HTML5 this should be a percentage of the image source:
      http://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html
      See -fx-border-image-slice
      "Percentage values may be used here, in which case the values are considered proportional to the source image."
      http://www.w3.org/TR/css3-background/#the-border-image-slice
      "Percentages are relative to the size of the image: the width of the image for the horizontal offsets, the height for vertical offsets."

            fheidric Felipe Heidrich (Inactive)
            fheidric Felipe Heidrich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: