<?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>257090</bug_id>
          
          <creation_ts>2023-05-20 11:02:41 -0700</creation_ts>
          <short_desc>Include &apos;zoom&apos; contributions in the getScreenCTM() result</short_desc>
          <delta_ts>2026-03-16 16:17:04 -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>308970</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, LayerBasedSVGEngine</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>fujii</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1956744</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-20 11:02:41 -0700</bug_when>
    <thetext>Hi Team,

While going through Blink&apos;s commit, I came across another failing testcase:

Testcase - https://jsfiddle.net/Lwrx9jf1/show

^ STP170 shows &apos;assert_approx_equals: a expected 2 +/- 0.000005 but got 1
&apos;

Blink Commit - https://chromium.googlesource.com/chromium/src/+/7254890a169ba91d8ad6f61374cd93ec59029441

WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/svg/SVGSVGElement.cpp#436

_______

Just wanted to raise, so we can fix it.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1956745</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-20 11:20:35 -0700</bug_when>
    <thetext>NOTE: Changing to this:

zoomFactor = 1 / renderer-&gt;view()-&gt;style().effectiveZoom();

Does not fix this testcase. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1956746</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-20 11:21:03 -0700</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #1)
&gt; NOTE: Changing to this:
&gt; 
&gt; zoomFactor = 1 / renderer-&gt;view()-&gt;style().effectiveZoom();
&gt; 
&gt; Does not fix this testcase. :-)

Sorry this:

zoomFactor = 1 / renderer-&gt;view().style().effectiveZoom();</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1958429</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-05-27 11:03:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/109931108&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978931</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-09-21 02:30:43 -0700</bug_when>
    <thetext>NOTE - It affects Layer Based SVG engine as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2187173</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2026-03-04 17:23:38 -0800</bug_when>
    <thetext>This test would be good addition to WPT (we should ask Chromium folks to push it) or create new one ourselves.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2190737</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2026-03-16 16:17:04 -0700</bug_when>
    <thetext>I fixed this with bug 308970 and added test as well.

*** This bug has been marked as a duplicate of bug 308970 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>