<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>192507</bug_id>
          
          <creation_ts>2018-12-07 11:26:19 -0800</creation_ts>
          <short_desc>Leading whitespaces in the &quot;values&quot; attribute of the feColorMatrix breaks its parsing</short_desc>
          <delta_ts>2025-08-06 14:27:45 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>215602</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=192519</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=267560</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>dino</cc>
    
    <cc>jond</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1486090</commentid>
    <comment_count>0</comment_count>
      <attachid>356826</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2018-12-07 11:26:19 -0800</bug_when>
    <thetext>Created attachment 356826
test case

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

            values=&quot; 0 0 0 0 0
                    1 1 1 1 0
                    0 0 0 0 0
                    0 0 0 1 0&quot; /&gt;

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&apos;t allow leading whitespace. We might choose to violate that intentionally.

This test case works as expected in Chrome and FireFox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955019</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-12 09:51:27 -0700</bug_when>
    <thetext>Possibly? https://src.chromium.org/viewvc/blink?view=revision&amp;revision=175785</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2134543</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-08-05 15:15:31 -0700</bug_when>
    <thetext>&lt;rdar://problem/157603269&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2134759</commentid>
    <comment_count>3</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2025-08-06 14:27:45 -0700</bug_when>
    <thetext>This is a duplicate of bug 215602 which was fixed in 228661@main.

*** This bug has been marked as a duplicate of bug 215602 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>356826</attachid>
            <date>2018-12-07 11:26:19 -0800</date>
            <delta_ts>2018-12-07 11:26:19 -0800</delta_ts>
            <desc>test case</desc>
            <filename>test278.svg</filename>
            <type>image/svg+xml</type>
            <size>558</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPGcgaWQ9ImNpcmNs
ZSI+CiAgICAgICAgPGNpcmNsZSBjeD0iNjAiIGN5PSI2MCIgcj0iNTAiIGZpbGw9ImdyZWVuIiBm
aWxsLW9wYWNpdHk9IjAuNSIgLz4KICAgIDwvZz4KICAgIDx0ZXh0IHg9IjMwIiB5PSIxMzAiPlJl
ZmVyZW5jZTwvdGV4dD4KCiAgICA8ZmlsdGVyIGlkPSJjb2xvck1lTWF0cml4Ij4KICAgICAgICA8
ZmVDb2xvck1hdHJpeCBpbj0iU291cmNlR3JhcGhpYyIKICAgICAgICAgICAgdHlwZT0ibWF0cml4
IgogICAgICAgICAgICB2YWx1ZXM9IiAwIDAgMCAwIDAKICAgICAgICAgICAgICAgICAgICAxIDEg
MSAxIDAKICAgICAgICAgICAgICAgICAgICAwIDAgMCAwIDAKICAgICAgICAgICAgICAgICAgICAw
IDAgMCAxIDAiIC8+CiAgICA8L2ZpbHRlcj4KICAgIDx1c2UgaHJlZj0iI2NpcmNsZSIgdHJhbnNm
b3JtPSJ0cmFuc2xhdGUoMTEwIDApIiBmaWx0ZXI9InVybCgjY29sb3JNZU1hdHJpeCkiIC8+CiAg
ICA8dGV4dCB4PSIxNTAiIHk9IjEzMCI+bWF0cml4PC90ZXh0Pgo8L3N2Zz4K
</data>

          </attachment>
      

    </bug>

</bugzilla>