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

pattern can't be applied to strokeRect

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: openjfx15
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
      None
    • Subcomponent:
      web

      Description

      SVG/Canvas doesn't display pattern when provided as an argument for stroke. Instead, default black color fill is applied.

      Sample HTML content:
      <svg>
          <pattern id="pattern" width="10%" height="10%">
              <rect x="0" y="0" width="5" height="5" fill="green" />
          </pattern>

          <rect x="10" y="10" width="100" height="100" fill="none"
                stroke-width="20" stroke="url(#pattern)" />
      </svg>

        Attachments

          Activity

            People

            • Assignee:
              ajoseph Arun Joseph
              Reporter:
              ajoseph Arun Joseph
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: