<?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>259435</bug_id>
          
          <creation_ts>2023-07-23 16:27:53 -0700</creation_ts>
          <short_desc>Remove iOS specific-quirk (non-standard) UA stylesheet rule from svg.css of &apos;text-size-adjust&apos;</short_desc>
          <delta_ts>2023-08-20 19:39:54 -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>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=56543</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=6487</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=118818</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="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>karlcow</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1967791</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-07-23 16:27:53 -0700</bug_when>
    <thetext>Hi Team,

I am unable to find the rationale for the following rule and understand why iOS need it since it does not exist for desktop and also not any other browser.

WebKit Source: https://github.com/WebKit/WebKit/blob/b5e4644abe94ff8a2991e7a9ceec14e2df43b6f7/Source/WebCore/css/svg.css#L64

It was added by this commit in 2014: https://github.com/WebKit/WebKit/commit/4c7785360b6851a86bab1caf0bde837b13e0a45f

and with just this comment in change log without any further explanation:

* css/svg.css: Added iOS-specific CSS styles.
(text, tspan, tref):

________

I think it also causes issue in one specific test failing on ios-wk2 when in the past, I tried to merge Blink patch to account for &apos;zoom&apos; for SVG Text.

If there is valid reason than I think adding bit comment would help or else we should explore to get rid of it.

CCing - @Simon - since he reviewed the commit, which added this.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1967849</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-07-24 09:35:40 -0700</bug_when>
    <thetext>This CSS line prevents text size boosting on iOS from affecting SVG, which seems reasonable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1967878</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-07-24 12:18:50 -0700</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #1)
&gt; This CSS line prevents text size boosting on iOS from affecting SVG, which
&gt; seems reasonable.

It think it hinders fixing - bug 118818

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

^ When I do, I get failure in iOS-wk2 for &apos;svg/text/font-small-enlarged-minimum-larger.svg&apos; but it does not account for new zoom stuff.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1968806</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-07-30 16:28:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/113111959&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1968891</commentid>
    <comment_count>4</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2023-07-31 11:44:48 -0700</bug_when>
    <thetext>I guess I&apos;m kind of confused why -webkit-text-size-adjust has an effect on the zoom property. I&apos;d expect zoom to still work even if -webkit-text-size-adjust is set to none. If I were debugging this, that&apos;s probably where I would start.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1968901</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-07-31 12:35:17 -0700</bug_when>
    <thetext>Hold up, there&apos;s history here. `-webkit-text-size-adjust` was introduced independently on iOS webkit and trunk webkit to mean two different things. On trunk webkit, it affected min font size and zoom: see https://commits.webkit.org/6018@main

I suspect that&apos;s what this rule is about.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1968902</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-07-31 12:35:54 -0700</bug_when>
    <thetext>s/rule/issue/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1968941</commentid>
    <comment_count>7</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-07-31 16:09:18 -0700</bug_when>
    <thetext>In See &apos;Also&apos; - bug removed &apos;webkit-text-size-adjust&apos; and from looking into commit, it removed it from svg.css as well:

https://github.com/WebKit/WebKit/commit/8c4b005b82057a009759524e4fb3494eed039e78

and later it was added by commit referred in &quot;Comment 0&quot;.

NOTE - I am trying to understand impact and history, so if I put some comments to record details, please don&apos;t mind.

Also StackOverlfow: https://stackoverflow.com/questions/5303263/fix-font-size-issue-on-mobile-safari-iphone-where-text-is-rendered-inconsisten</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1968959</commentid>
    <comment_count>8</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-07-31 17:00:00 -0700</bug_when>
    <thetext>I took test case from Chrome bug reported (for bug 118818 - candidate merge) and then did it run on iOS 16.6:

Test Case - https://jsfiddle.net/mEZq8/5/show

iOS does not zoom &apos;text&apos; issue [pinch to zoom and A+-] and don&apos;t have bug where &apos;A&apos; text go out of container etc. but we have it on desktop as can be test on WebKit ToT etc.

Separate Note - Local patch of bug 118818 still fixes it for desktop.

______

text, tspan, tref {
   -webkit-text-size-adjust: none;
}</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>