<?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>53082</bug_id>
          
          <creation_ts>2011-01-25 06:32:32 -0800</creation_ts>
          <short_desc>SVG: &quot;margin&quot; style not properly applied to xhtml foreignObjects</short_desc>
          <delta_ts>2022-12-02 16:06:25 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows Vista</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>245908</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Berend-Jan Wever">skylined</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>eric</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>339625</commentid>
    <comment_count>0</comment_count>
      <attachid>80057</attachid>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2011-01-25 06:32:32 -0800</bug_when>
    <thetext>Created attachment 80057
SVG version - displays X too high

Chromium bug: http://code.google.com/p/chromium/issues/detail?id=70758

Repro = compare visually:
&lt;?xml version=&quot;1.0&quot; standalone=&quot;yes&quot;?&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;body style=&quot;margin:50px&quot;&gt;
    X
  &lt;/body&gt;
&lt;/html&gt;

and

&lt;?xml version=&quot;1.0&quot; standalone=&quot;yes&quot;?&gt;
&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;
  &lt;foreignObject x=&quot;0&quot; y=&quot;0&quot; width=&quot;100%&quot; height=&quot;100%&quot;&gt;
    &lt;body xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;margin:50px&quot;&gt;
      X
    &lt;/body&gt;
  &lt;/foreignObject&gt;
&lt;/svg&gt;

The later (SVG) version does not apply the margin on the TOP, so the X is not displayed in the correct location.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>339626</commentid>
    <comment_count>1</comment_count>
      <attachid>80058</attachid>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2011-01-25 06:33:07 -0800</bug_when>
    <thetext>Created attachment 80058
XHTML version - displays X located correctly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1872737</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-05-30 05:32:07 -0700</bug_when>
    <thetext>I am still able to reproduce the following issue from the attached test case &quot;display X too high&quot; on Safari 15.5 (macOS 12.4).

It renders fine on Chrome Canary 104 and Firefox Nightly 102. Chrome fixed this issue in 2016 in this bug - https://bugs.chromium.org/p/chromium/issues/detail?id=226805

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905059</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-10-12 06:57:21 -0700</bug_when>
    <thetext>Let&apos;s try - https://github.com/WebKit/WebKit/pull/5252</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916375</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-12-02 16:06:25 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 245908 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>80057</attachid>
            <date>2011-01-25 06:32:32 -0800</date>
            <delta_ts>2011-01-25 06:32:32 -0800</delta_ts>
            <desc>SVG version - displays X too high</desc>
            <filename>test-margin.svg</filename>
            <type>image/svg+xml</type>
            <size>257</size>
            <attacher name="Berend-Jan Wever">skylined</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJ5ZXMiPz4NCjxzdmcgeG1sbnM9Imh0dHA6
Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPGZvcmVpZ25PYmplY3QgeD0iMCIgeT0iMCIgd2lk
dGg9IjEwMCUiIGhlaWdodD0iMTAwJSI+DQogICAgPGJvZHkgeG1sbnM9Imh0dHA6Ly93d3cudzMu
b3JnLzE5OTkveGh0bWwiIHN0eWxlPSJtYXJnaW46NTBweCI+DQogICAgICBYDQogICAgPC9ib2R5
Pg0KICA8L2ZvcmVpZ25PYmplY3Q+DQo8L3N2Zz4=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>80058</attachid>
            <date>2011-01-25 06:33:07 -0800</date>
            <delta_ts>2011-01-25 06:33:07 -0800</delta_ts>
            <desc>XHTML version - displays X located correctly</desc>
            <filename>test-margin.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>140</size>
            <attacher name="Berend-Jan Wever">skylined</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJ5ZXMiPz4NCjxodG1sIHhtbG5zPSJodHRw
Oi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIj4NCiAgPGJvZHkgc3R5bGU9Im1hcmdpbjo1MHB4Ij4N
CiAgICBYDQogIDwvYm9keT4NCjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>