<?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>200439</bug_id>
          
          <creation_ts>2019-08-05 10:11:31 -0700</creation_ts>
          <short_desc>Invalid parsing for &apos;cx&apos; and &apos;cy&apos; attribute via style change</short_desc>
          <delta_ts>2024-02-20 18:03:26 -0800</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>REOPENED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=151468</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>
          
          <blocked>200143</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>krit</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1558472</commentid>
    <comment_count>0</comment_count>
      <attachid>375532</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2019-08-05 10:11:31 -0700</bug_when>
    <thetext>Created attachment 375532
test case

Open the attached test case.

Expected: A green circle drawn at (0, 0).
Result: A green circle drawn at (100, 100).

The &apos;cx&apos; and &apos;cy&apos; attributes are changed through changing the style of the circle element. Because the strings are incorrect css values, the expectation is no change in the values of these attributes should happen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1584264</commentid>
    <comment_count>1</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2019-10-26 12:21:15 -0700</bug_when>
    <thetext>Seems like the test case is working now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884782</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-18 10:53:40 -0700</bug_when>
    <thetext>I am unable to reproduce this bug in Safari 15.5 on macOS 12.4 and &quot;green&quot; circle is drawn on (100,100) and it is confirmed by Comment 01 as well.

From other browser perspective, Chrome Canary 105 matches with Safari behavior and draw it at (100,100) while Firefox Nightly 104 draws it at (0,0). Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884801</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-18 11:51:37 -0700</bug_when>
    <thetext>Based on Ahmad&apos;s testing, closing as CONFIG CHANGED.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884893</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-07-18 14:45:31 -0700</bug_when>
    <thetext>Aren&apos;t we saying that this is not to be fixed, and if so, why? Per the report, (0, 0) is expected, but we are getting (100, 100), same as in 2019.

This looks similar to bug 94352.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884927</commentid>
    <comment_count>5</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-18 15:43:17 -0700</bug_when>
    <thetext>REOPEN based on Alexey&apos;s comment. I didn&apos;t realize Said filed this against a spec -- I assumed matching Chrome was sufficient for compatibility.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884928</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-18 15:43:27 -0700</bug_when>
    <thetext>&lt;rdar://problem/97224363&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2015654</commentid>
    <comment_count>7</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-02-20 18:03:26 -0800</bug_when>
    <thetext>NOTE - we are passing all tests here: https://wpt.fyi/results/svg/geometry/parsing?label=master&amp;label=experimental&amp;aligned&amp;q=invalid

and matching with Firefox Nightly, which is same the case with this test case. Safari &amp; Firefox are matching, do we expect to match Chrome here. If yes, then I think we might need to update tests as well.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>375532</attachid>
            <date>2019-08-05 10:11:31 -0700</date>
            <delta_ts>2019-08-05 10:11:31 -0700</delta_ts>
            <desc>test case</desc>
            <filename>svg-parsing-cx with-invalid-values.svg</filename>
            <type>image/svg+xml</type>
            <size>203</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgoJPGNpcmNsZSByPSI1MCIg
ZmlsbD0iZ3JlZW4iLz4KCTxzY3JpcHQ+CgkJdmFyIGNpcmNsZSA9IGRvY3VtZW50LnF1ZXJ5U2Vs
ZWN0b3IoImNpcmNsZSIpOwoJCWNpcmNsZS5zdHlsZS5jeCA9ICIyMDAiOwoJCWNpcmNsZS5zdHls
ZS5jeSA9ICIyMDAiOwoJPC9zY3JpcHQ+Cjwvc3ZnPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>