Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-141102

[REG 6.9->6.10] SVG has wrong color

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.10.0
    • SVG Support
    • None

      Consider the following SVG

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <svg
         width="56"
         height="56"
         viewBox="0 0 56 56"
         id="svg1"
         version="1.1"
         xmlns:xlink="http://www.w3.org/1999/xlink"
         xmlns="http://www.w3.org/2000/svg"
         xmlns:svg="http://www.w3.org/2000/svg">
        <style
           id="current-color-scheme"
           type="text/css">
          .ColorScheme-Highlight {
              color:#ddb323;
          }
        </style>
        <defs
           id="defs3">
          <linearGradient
             id="line">
            <stop
               offset="0"
               class="ColorScheme-Highlight"
               style="stop-color:currentColor;stop-opacity:0.87450981"
               id="stop1" />
            <stop
               offset="0.39456144"
               class="ColorScheme-Highlight"
               style="stop-color:currentColor;stop-opacity:0.627451"
               id="stop2" />
            <stop
               offset="1"
               class="ColorScheme-Highlight"
               style="stop-color:currentColor;stop-opacity:0"
               id="stop3" />
          </linearGradient>
          <radialGradient
             id="rad"
             cx="0"
             cy="0"
             r="1"
             xlink:href="#line" />
        </defs>
        <g
           id="topleft"
           transform="translate(10,10)">
          <rect
             style="fill:url(#rad)"
             height="12"
             width="12"
             transform="rotate(180 6 6)"
             id="rect11" />
        </g>
      </svg> 

      It's supposed to show a yellow glow, but since 6.10 it's actually black when rendered with QtSVG (e.g. in Gwenview).

      Bisecting suggests that it broke with https://codereview.qt-project.org/c/qt/qtsvg/+/633985

      Downstream bug report: https://bugs.kde.org/show_bug.cgi?id=510485

       

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            hatemelkharashy Hatem ElKharashy
            nicolasfella Nicolas Fella
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes