<?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>275621</bug_id>
          
          <creation_ts>2024-06-18 10:11:19 -0700</creation_ts>
          <short_desc>Computed style in SVG should not be affected by CSS zoom</short_desc>
          <delta_ts>2025-11-26 00:32:10 -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>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=194903</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Rogers">pdr</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>fujii</cc>
    
    <cc>karlcow</cc>
    
    <cc>ntim</cc>
    
    <cc>sabouhallawa</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>2041902</commentid>
    <comment_count>0</comment_count>
      <attachid>471700</attachid>
    <who name="Philip Rogers">pdr</who>
    <bug_when>2024-06-18 10:11:19 -0700</bug_when>
    <thetext>Created attachment 471700
Testcase showing computed style of zoomed values in html and svg

CSS zoom has recently been standardized (https://github.com/w3c/csswg-drafts/issues/5623) and Gecko has begun shipping this. A property of CSS zoom is that computed styles should not reflect the zoomed value. One reason for this is to support round-tripping. This is generally supported across Chromium, Gecko, and Webkit. In SVG though, Webkit incorrectly unzooms computed styles (see attached testcase).

Expected (Chromium, Gecko):
  svg width computed style: 100px
  rect width computed style: 50px
  div width computed style: 100px

Actual (Safari 17.4 WebKit 19619.1.16.3):
  svg width computed style: 100px
  rect width computed style: 25px
  div width computed style: 100px</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2042987</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-06-25 10:12:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/130513052&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2161399</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-11-26 00:32:10 -0800</bug_when>
    <thetext>WebKit ToT (303562@main):

svg width computed style: 100px
rect width computed style: 50px
div width computed style: 100px

Safari Technology Preview 232:

svg width computed style: 100px
rect width computed style: 50px
div width computed style: 100px</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>471700</attachid>
            <date>2024-06-18 10:11:19 -0700</date>
            <delta_ts>2024-06-18 10:11:19 -0700</delta_ts>
            <desc>Testcase showing computed style of zoomed values in html and svg</desc>
            <filename>svg_zoom_computed_style.html</filename>
            <type>text/html</type>
            <size>625</size>
            <attacher name="Philip Rogers">pdr</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxkaXYgc3R5bGU9Inpvb206IDI7Ij4KICA8c3ZnIGlkPXN2ZyB3aWR0
aD0iMTAwIiBoZWlnaHQ9IjUwIiBzdHlsZT0iYmFja2dyb3VuZDogbGlnaHRibHVlOyI+CiAgICA8
cmVjdCBpZD1yZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSI1MCIgaGVpZ2h0PSIyNSIgZmlsbD0icmVi
ZWNjYXB1cnBsZSIvPgogIDwvc3ZnPgogIDxkaXYgaWQ9ZGl2IHN0eWxlPSJ3aWR0aDogMTAwcHg7
IGhlaWdodDogNTBweDsgYmFja2dyb3VuZDogbGlnaHRncmVlbjsiPjwvZGl2Pgo8L2Rpdj4KCjxk
aXYgaWQ9ImxvZyI+PC9kaXY+CjxzY3JpcHQ+CiAgbG9nLmlubmVySFRNTCArPSBgc3ZnIHdpZHRo
IGNvbXB1dGVkIHN0eWxlOiAke2dldENvbXB1dGVkU3R5bGUoc3ZnKVsnd2lkdGgnXX1gOwogIGxv
Zy5pbm5lckhUTUwgKz0gYDxicj5gOwogIGxvZy5pbm5lckhUTUwgKz0gYHJlY3Qgd2lkdGggY29t
cHV0ZWQgc3R5bGU6ICR7Z2V0Q29tcHV0ZWRTdHlsZShyZWN0KVsnd2lkdGgnXX1gOwogIGxvZy5p
bm5lckhUTUwgKz0gYDxicj5gOwogIGxvZy5pbm5lckhUTUwgKz0gYGRpdiB3aWR0aCBjb21wdXRl
ZCBzdHlsZTogJHtnZXRDb21wdXRlZFN0eWxlKGRpdilbJ3dpZHRoJ119YDsKPC9zY3JpcHQ+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>