<?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>281478</bug_id>
          
          <creation_ts>2024-10-15 00:43:59 -0700</creation_ts>
          <short_desc>text zoom should scale texts in HTML in SVG documents</short_desc>
          <delta_ts>2024-10-24 00:43:27 -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=199236</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>
          <dependson>281561</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Fujii Hironori">fujii</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2067984</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-10-15 00:43:59 -0700</bug_when>
    <thetext>After 284310@main (bug#199236), we no longer need WebCore::Style::BuilderState::useSVGZoomRules().
computed font-size are same both for HTML and SVG.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2067986</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-10-15 00:47:14 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/35203</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2069770</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-10-22 00:44:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/138381179&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2070304</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-10-24 00:18:04 -0700</bug_when>
    <thetext>With the WIP patch &lt;https://github.com/WebKit/WebKit/commit/98a585cdf128de8685e8b4929de5cb6afd4a2d7a&gt;,
in svg/zoom/page/zoom-foreignObject.svg, line-height of &lt;xhtml:a&gt; is zoomed by page zoom unexpectedly.
It is affected by the font size of the parent &lt;svg:foreignObject&gt;.

This can be worked around by adding a parent element &lt;xhtml:html&gt;.

diff --git a/LayoutTests/svg/zoom/page/zoom-foreignObject.svg b/LayoutTests/svg/zoom/page/zoom-foreignObject.svg
index 52675c5cee95..07e329112cff 100644
--- a/LayoutTests/svg/zoom/page/zoom-foreignObject.svg
+++ b/LayoutTests/svg/zoom/page/zoom-foreignObject.svg
@@ -5,9 +5,11 @@
 
 &lt;!-- HTML FO text --&gt;
 &lt;foreignObject width=&quot;250&quot; height=&quot;200&quot; transform=&quot;scale(3) skewY(5) skewX(5)&quot;&gt;
+  &lt;xhtml:html&gt;
   &lt;xhtml:div&gt;This is a text&lt;/xhtml:div&gt;
   &lt;xhtml:a href=&quot;http://www.example.com/&quot;&gt;and a link.&lt;/xhtml:a&gt;&lt;xhtml:br/&gt;
   &lt;xhtml:div&gt;[HTML]&lt;/xhtml:div&gt;
+  &lt;/xhtml:html&gt;
 &lt;/foreignObject&gt;
 &lt;rect width=&quot;250&quot; height=&quot;200&quot; stroke=&quot;green&quot; fill=&quot;none&quot; /&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>