[Webkit-unassigned] [Bug 215602] New: Newlines in <feColorMatrix values="…"> should be treated as whitespace instead of breaking the filter

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 18 02:09:27 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=215602

            Bug ID: 215602
           Summary: Newlines in <feColorMatrix values="…"> should be
                    treated as whitespace instead of breaking the filter
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mathias at qiwi.be
                CC: zimmermann at kde.org

Created attachment 406774

  --> https://bugs.webkit.org/attachment.cgi?id=406774&action=review

test case showing either a red background (fail) or a green background (pass)

This SVG filter definition doesn't have an effect, because Safari apparently cannot handle the newline characters in the `values` attribute value:

  <filter id="f">
    <feColorMatrix values="
      0 0 0 0 0
      1 1 1 0 0
      0 0 0 0 0
      0 0 0 1 0">
  </filter>

Rewriting the attribute value without any newlines (or dynamically updating the attribute value via JS, as done in the attached test case) causes the filter to work as expected:

  <filter id="f">
    <feColorMatrix values="0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0">
  </filter>

Please support newlines in `<feColorMatrix values>`.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200818/51957b8a/attachment.htm>


More information about the webkit-unassigned mailing list