<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SVG-Bug: different rendering of standalone-SVG and inline-SVG for foreignObject-tag in Discussions</title>
    <link>https://connect.mozilla.org/t5/discussions/svg-bug-different-rendering-of-standalone-svg-and-inline-svg-for/m-p/94409#M36823</link>
    <description>&lt;P&gt;&lt;BR /&gt;I developed an SVG inline a HTML-file&amp;nbsp; and used the foreignObject. Everything worked fine.&lt;BR /&gt;Then I build an svg-file from the inline-svg. And the foreignObject did not worked anymore. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;HTML-example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="de"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;title&amp;gt;test&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;h1&amp;gt;Test include vs. inline&amp;lt;/h1&amp;gt;
&amp;lt;h2&amp;gt;Include SVG &amp;lt;/h2&amp;gt;
&amp;lt;div&amp;gt;
    &amp;lt;img  width="841mm" height="1189mm" src="error_poster_2.svg" /&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;h2&amp;gt;Inline SVG&amp;lt;/h2&amp;gt;
&amp;lt;svg xmlns="http://www.w3.org/2000/svg" width="841mm" height="1189mm" viewBox="0 0 2384 3370"&amp;gt;
    &amp;lt;g&amp;gt;
        &amp;lt;text x="1640" y="1535" font-size="22" font-weight="bolder"&amp;gt;
            testing
        &amp;lt;/text&amp;gt;

        &amp;lt;foreignObject x="1640" y="1545" width="100" height="100" xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
            &amp;lt;h1&amp;gt;Hier ist die Welt&amp;lt;/h1&amp;gt;
        &amp;lt;/foreignObject&amp;gt;
    &amp;lt;/g&amp;gt;
&amp;lt;/svg&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;SVG-Example "error_poster_2.svg"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;svg xmlns="http://www.w3.org/2000/svg" width="841mm" height="1189mm" viewBox="0 0 2384 3370"&amp;gt;
    &amp;lt;g&amp;gt;
        &amp;lt;text x="1640" y="1535" font-size="22" font-weight="bolder"&amp;gt;
            testing
        &amp;lt;/text&amp;gt;

        &amp;lt;foreignObject x="1640" y="1545" width="100" height="100" xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
            &amp;lt;h1&amp;gt;Hier ist die Welt&amp;lt;/h1&amp;gt;
        &amp;lt;/foreignObject&amp;gt;
    &amp;lt;/g&amp;gt;
&amp;lt;/svg&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Interesting: The attribute width in &amp;lt;img&amp;gt; leads to another size than the attribute width in &amp;lt;svg&amp;gt;.&amp;nbsp; See the example-code.&amp;nbsp; (I saw the same bug in the chrome too. Perhaps I misunderstood the usage of the attribute width. I am not an expert.)&lt;/P&gt;</description>
    <pubDate>Fri, 25 Apr 2025 08:29:46 GMT</pubDate>
    <dc:creator>padina</dc:creator>
    <dc:date>2025-04-25T08:29:46Z</dc:date>
    <item>
      <title>SVG-Bug: different rendering of standalone-SVG and inline-SVG for foreignObject-tag</title>
      <link>https://connect.mozilla.org/t5/discussions/svg-bug-different-rendering-of-standalone-svg-and-inline-svg-for/m-p/94409#M36823</link>
      <description>&lt;P&gt;&lt;BR /&gt;I developed an SVG inline a HTML-file&amp;nbsp; and used the foreignObject. Everything worked fine.&lt;BR /&gt;Then I build an svg-file from the inline-svg. And the foreignObject did not worked anymore. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;HTML-example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="de"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;title&amp;gt;test&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;h1&amp;gt;Test include vs. inline&amp;lt;/h1&amp;gt;
&amp;lt;h2&amp;gt;Include SVG &amp;lt;/h2&amp;gt;
&amp;lt;div&amp;gt;
    &amp;lt;img  width="841mm" height="1189mm" src="error_poster_2.svg" /&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;h2&amp;gt;Inline SVG&amp;lt;/h2&amp;gt;
&amp;lt;svg xmlns="http://www.w3.org/2000/svg" width="841mm" height="1189mm" viewBox="0 0 2384 3370"&amp;gt;
    &amp;lt;g&amp;gt;
        &amp;lt;text x="1640" y="1535" font-size="22" font-weight="bolder"&amp;gt;
            testing
        &amp;lt;/text&amp;gt;

        &amp;lt;foreignObject x="1640" y="1545" width="100" height="100" xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
            &amp;lt;h1&amp;gt;Hier ist die Welt&amp;lt;/h1&amp;gt;
        &amp;lt;/foreignObject&amp;gt;
    &amp;lt;/g&amp;gt;
&amp;lt;/svg&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;SVG-Example "error_poster_2.svg"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;svg xmlns="http://www.w3.org/2000/svg" width="841mm" height="1189mm" viewBox="0 0 2384 3370"&amp;gt;
    &amp;lt;g&amp;gt;
        &amp;lt;text x="1640" y="1535" font-size="22" font-weight="bolder"&amp;gt;
            testing
        &amp;lt;/text&amp;gt;

        &amp;lt;foreignObject x="1640" y="1545" width="100" height="100" xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
            &amp;lt;h1&amp;gt;Hier ist die Welt&amp;lt;/h1&amp;gt;
        &amp;lt;/foreignObject&amp;gt;
    &amp;lt;/g&amp;gt;
&amp;lt;/svg&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Interesting: The attribute width in &amp;lt;img&amp;gt; leads to another size than the attribute width in &amp;lt;svg&amp;gt;.&amp;nbsp; See the example-code.&amp;nbsp; (I saw the same bug in the chrome too. Perhaps I misunderstood the usage of the attribute width. I am not an expert.)&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 08:29:46 GMT</pubDate>
      <guid>https://connect.mozilla.org/t5/discussions/svg-bug-different-rendering-of-standalone-svg-and-inline-svg-for/m-p/94409#M36823</guid>
      <dc:creator>padina</dc:creator>
      <dc:date>2025-04-25T08:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: SVG-Bug: different rendering of standalone-SVG and inline-SVG for foreignObject-tag</title>
      <link>https://connect.mozilla.org/t5/discussions/svg-bug-different-rendering-of-standalone-svg-and-inline-svg-for/m-p/101018#M39276</link>
      <description>&lt;P&gt;foreignObject is not in the html namespace so you need to remove the&amp;nbsp;xmlns="&lt;A href="http://www.w3.org/1999/xhtml" target="_blank"&gt;http://www.w3.org/1999/xhtml&lt;/A&gt;" from the foreignObject element and put it on the &amp;lt;h1&amp;gt; tag instead.&lt;/P&gt;&lt;P&gt;html does not process xmlns attributes at all which is why it works on a html page.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 00:38:13 GMT</pubDate>
      <guid>https://connect.mozilla.org/t5/discussions/svg-bug-different-rendering-of-standalone-svg-and-inline-svg-for/m-p/101018#M39276</guid>
      <dc:creator>longsonr</dc:creator>
      <dc:date>2025-07-17T00:38:13Z</dc:date>
    </item>
  </channel>
</rss>

