<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Leading whitespaces in the "values" attribute of the feColorMatrix breaks its parsing"
   href="https://bugs.webkit.org/show_bug.cgi?id=192507">192507</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Leading whitespaces in the "values" attribute of the feColorMatrix breaks its parsing
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>SVG
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned@lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sabouhallawa@apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>zimmermann@kde.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=356826" name="attach_356826" title="test case">attachment 356826</a> <a href="attachment.cgi?id=356826&action=edit" title="test case">[details]</a></span>
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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>