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

pattern can't be applied to strokeRect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx15
    • javafx
    • None
    • web

      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>

            Unassigned Unassigned
            ajoseph Arun Joseph (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: