<?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>201946</bug_id>
          
          <creation_ts>2019-09-18 14:52:06 -0700</creation_ts>
          <short_desc>SVG &lt;foreignObject&gt; renders the composited child even if its size is zero</short_desc>
          <delta_ts>2022-09-22 16:21:42 -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>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>200143</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1572101</commentid>
    <comment_count>0</comment_count>
      <attachid>379076</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2019-09-18 14:52:06 -0700</bug_when>
    <thetext>Created attachment 379076
foreignObject-composited-child

Open the attached test case:

Result: The text &quot;Test&quot; appears twice: one inside a box and the other without a box.
Expected:  The text &quot;Test&quot; appears only once inside a box.

The test case has two &lt;foreignObject&gt; elements.

-- The first one has the dimension of 100x100. Inside this &lt;foreignObject&gt;, there is a &lt;div&gt; element with the text &quot;Test&quot;. The border of &lt;foreignObject&gt; and the text of the &lt;div&gt; appear as expected.
-- The second one has the dimension of 0x0. Inside this &lt;foreignObject&gt;, there is a &lt;div&gt; element with the text &quot;Test&quot;. The &lt;div&gt; element has the style=&quot;will-change: transform&quot;. The border of &lt;foreignObject&gt; does not appear as expected. But the text of the &lt;div&gt; element appears.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1572105</commentid>
    <comment_count>1</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2019-09-18 15:00:23 -0700</bug_when>
    <thetext>Related WPT tests:

https://wpt.fyi/results/svg/extensibility/foreignObject/composited-inside-object.html?label=master&amp;label=experimental&amp;aligned
https://wpt.fyi/results/svg/extensibility/foreignObject/compositing-backface-visibility.html?label=master&amp;label=experimental&amp;aligned
https://wpt.fyi/results/svg/extensibility/foreignObject/position-svg-root-in-foreign-object.html?label=master&amp;label=experimental&amp;aligned</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1572135</commentid>
    <comment_count>2</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2019-09-18 16:15:07 -0700</bug_when>
    <thetext>This might be a duplicate of https://bugs.webkit.org/show_bug.cgi?id=201110</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1900488</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-22 16:21:34 -0700</bug_when>
    <thetext>All browsers differ from each other in this test case:

*** Safari Technology Preview 154 ***

Two &quot;test&quot; while first being in square / box

*** Chrome Canary 108 ***

Only single &quot;test&quot; in square / box

*** Firefox Nightly 107 ***

Just written &quot;Test&quot; but not in bordered square / box like other.

_____

Just wanted to share updated test results. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>379076</attachid>
            <date>2019-09-18 14:52:06 -0700</date>
            <delta_ts>2019-09-18 14:54:16 -0700</delta_ts>
            <desc>foreignObject-composited-child</desc>
            <filename>foreignObject-will-change-transform.svg</filename>
            <type>image/svg+xml</type>
            <size>406</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgoJPHN0eWxlPgoJCWZvcmVp
Z25PYmplY3QgewoJCQlib3JkZXI6IDFweCBzb2xpZCBibGFjazsKCQl9CQoJPC9zdHlsZT4KICAg
IDxmb3JlaWduT2JqZWN0IHg9IjEwIiB5PSIxMCIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiPgog
ICAgICAJPGRpdiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCI+VGVzdDwvZGl2
PgogICAgPC9mb3JlaWduT2JqZWN0PgoKICAgIDxmb3JlaWduT2JqZWN0IHg9IjEyMCIgeT0iMTAi
PgogICAgICAJPGRpdiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCIgc3R5bGU9
IndpbGwtY2hhbmdlOiB0cmFuc2Zvcm0iPlRlc3Q8L2Rpdj4KICAgIDwvZm9yZWlnbk9iamVjdD4K
PC9zdmc+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>