[Webkit-unassigned] [Bug 192507] New: Leading whitespaces in the "values" attribute of the feColorMatrix breaks its parsing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 7 11:26:19 PST 2018


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

            Bug ID: 192507
           Summary: Leading whitespaces in the "values" attribute of the
                    feColorMatrix breaks its parsing
           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: sabouhallawa at apple.com
                CC: zimmermann at kde.org

Created attachment 356826

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

test case

Open the attached test case. The circle with the feColorMatrix is not rendered. The "values" attribute of the feColorMatrix is written like that:

            values=" 0 0 0 0 0
                    1 1 1 1 0
                    0 0 0 0 0
                    0 0 0 1 0" />

The leading whitespaces breaks the filter parsing and causes nothing to be rendered.

Look at the SVGNumberListValues::parse() and you will find this comment:

// The spec (section 4.1) strangely doesn't allow leading whitespace. We might choose to violate that intentionally.

This test case works as expected in Chrome and FireFox.

-- 
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/20181207/2b5376b7/attachment.html>


More information about the webkit-unassigned mailing list