<?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>118818</bug_id>
          
          <creation_ts>2013-07-17 15:11:36 -0700</creation_ts>
          <short_desc>Account for zoom when computing SVG font size</short_desc>
          <delta_ts>2024-08-06 15:19:14 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=199236</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=259435</see_also>
          <bug_file_loc>https://jsfiddle.net/mEZq8/5/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BlinkMergeCandidate, InRadar, LayerBasedSVGEngine</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Fujii Hironori">fujii</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>fujii</cc>
    
    <cc>krit</cc>
    
    <cc>pdr</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>909478</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-07-17 15:11:36 -0700</bug_when>
    <thetext>Consider merging https://chromium.googlesource.com/chromium/blink/+/5624c6e475af92d541edc8a3394602e320d00323

Previously, text that was zoomed appeared larger than geometry under
the same zoom value. This was caused by two bugs:
1) When setting the computed font size, we incorrectly referenced the
computedTextSize instead of the specified size.
2) Text with GeometricPrecision did not set a computed size but
instead relied on the text size being correct.

This change addresses both of these issues and adds a test to prove correctness.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899215</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-09-17 09:28:20 -0700</bug_when>
    <thetext>https://github.com/WebKit/WebKit/pull/4011</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899435</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-19 00:52:01 -0700</bug_when>
    <thetext>There is an issue in this patch as it is and cause following regression:

https://src.chromium.org/viewvc/blink?view=revision&amp;revision=180995</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899759</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-20 02:50:55 -0700</bug_when>
    <thetext>Just to document my PR attempt:

https://github.com/WebKit/WebKit/pull/4011

____________

1) ScalingFactor can go below &apos;1&apos; so restricting it at &quot;1&quot; is not ideal. Someone need to think about on how to add this to the code and manage it.
2) iOS-wk2 has &quot;text-size-adjst&quot; in svg.css as &quot;UA&quot; stylesheet, so &quot;font-small-enlarged-minimum-larger-expected.svg&quot; does not work and have to add &quot;platform&quot; specific expectations.
3) font-small-enlarged-minimum-larger-expected.svg has &quot;Script&quot; in it, while it can be hardcoded to &quot;80&quot; to work perfectly fine except (2).
4) Due to LBSE work, GeometricPrecision work is now handled differently.

___________

Further, this patch had issue, which was resolved further in Comment 02 patch, so when merging, you had to account for both.

I am waiting on final response but if I am not able to tackle it. I will close my PR 4011 and then leave it to someone else to finish it.

Just wanted to summarise the work here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1982244</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-03 15:03:02 -0700</bug_when>
    <thetext>It is reproducible in LBSE only for &apos;purple&apos; container, where the text &apos;A&apos; does not go out of &apos;yellow&apos; constraint but &apos;purple&apos; container does get bigger.

Adding tag to flag following issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1987361</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-25 04:03:00 -0700</bug_when>
    <thetext>Might have to add this into mix: https://src.chromium.org/viewvc/blink?view=revision&amp;revision=154004</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2048126</commentid>
    <comment_count>6</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-07-24 13:07:10 -0700</bug_when>
    <thetext>*** Bug 276984 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2049395</commentid>
    <comment_count>7</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-07-30 00:42:22 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/31452</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2051037</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-08-06 15:18:59 -0700</bug_when>
    <thetext>Committed 281919@main (6639b68a68a6): &lt;https://commits.webkit.org/281919@main&gt;

Reviewed commits have been landed. Closing PR #31452 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2051038</commentid>
    <comment_count>9</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-08-06 15:19:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/133331984&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>