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

JavaFx doesn't display transparent border if different than other sides

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 8, 9
    • javafx
    • JavaSE8 Windows/Linux+x86/x64

    • web
    • x86
    • windows

      JavaFx WebView Browser handles transparent borders when the border is consistent, but not when one side of the border is transparent, the transparent border is just missing. See Screen Shot.

      We allow our customers to configure transparent borders for rectangles so it won't work right when using javafx WebView as the browser, but it works for all other browsers.

      Here is a jsfiddle to reproduce the problem:

      https://jsfiddle.net/uexma4o6/16/

      Here is the css that doesn't render the ;border-top; correctly:

      {code}
      div.broken {
          display: inline-block;
          width: 200px;
          height: 200px;
          border-top: 20px solid rgba(255, 0, 255, .25);
          border-bottom: 20px solid rgba(255, 0, 255, 1);
          border-left: 20px solid rgba(255, 0, 255, 1);
          border-right: 20px solid rgba(255, 0, 255, 1);
          margin: 20px 10px;
      }
      {code}

            Unassigned Unassigned
            gucheng Guixin Cheng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: