<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6947</bug_id>
          
          <creation_ts>2009-05-23 22:17:17 +0000</creation_ts>
          <short_desc>Inline SVG fragments test suite please</short_desc>
          <delta_ts>2009-05-24 18:14:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>SVG</product>
          <component>Concepts</component>
          <version>SVG 1.1 Full</version>
          <rep_platform>Macintosh</rep_platform>
          <op_sys>All</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>Test Suite</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lars Hellstr">Lars.Hellstrom</reporter>
          <assigned_to name="Doug Schepers">schepers</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>helder.magalhaes</cc>
          
          <qa_contact name="SVG Public List">www-svg</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>25273</commentid>
    <comment_count>0</comment_count>
    <who name="Lars Hellstr">Lars.Hellstrom</who>
    <bug_when>2009-05-23 22:17:17 +0000</bug_when>
    <thetext>I&apos;m new at SVG, so it&apos;s quite possible I&apos;m missing something, but...

It seems the test suite, as presented at http://www.w3.org/Graphics/SVG/Test/20061213/, only contains tests where the SVG is (i) a stand-alone SVG Web page or (ii) embedded by reference into a Web page. The Concepts chapter of the SVG 1.1 spec also lists (iii) embedding inline as a way of including SVG content, so it seems reasonable that this approach should be tested as well. Especially if browsers might process it differently.

As far as I can tell, Safari (3.2.1) uses a plugin for rendering SVG embedded by reference, but renders inline SVG itself. Firefox (2.0.0) seems to not render text in inline SVG although it renders text in referenced SVG, which also suggests the two ways are handled differently. This latter case was what prompted me to seek the test suite out in the first case, but it could just as well be me that has gotten the code wrong. Either way I&apos;d appreciate an official test covering inline SVG so that I can use it to determine if it is my fault or Firefox&apos;s.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25282</commentid>
    <comment_count>1</comment_count>
    <who name="Helder Magalh">helder.magalhaes</who>
    <bug_when>2009-05-24 11:22:17 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; I&apos;m new at SVG, so it&apos;s quite possible I&apos;m missing something, but...

Well, you may double check that by crawling through the (&quot;www-svg&quot; and &quot;public-html&quot;) mailing lists and/or creating a new thread... ;-)


&gt; It seems the test suite, as presented at
&gt; http://www.w3.org/Graphics/SVG/Test/20061213/, only contains tests where the
&gt; SVG is (i) a stand-alone SVG Web page or (ii) embedded by reference into a Web
&gt; page. The Concepts chapter of the SVG 1.1 spec also lists (iii) embedding
&gt; inline as a way of including SVG content, so it seems reasonable that this
&gt; approach should be tested as well. Especially if browsers might process it
&gt; differently.

I share your opinion, but please note that SVG in HTML is still being discussed. A proposal [1] already exists, and there has been warm discussion [2] on HTML integration (more recently integration into HTML5). Naturally, somewhere in time, I hope a test suite will be derived... :-)


&gt; As far as I can tell, Safari (3.2.1) uses a plugin for rendering SVG embedded
&gt; by reference, but renders inline SVG itself. Firefox (2.0.0) seems to not
&gt; render text in inline SVG although it renders text in referenced SVG, which
&gt; also suggests the two ways are handled differently.

This should only happen if you have an SVG viewer installed which registers itself for the SVG MIME type. As far as I know, when default settings are used, both implementations (as well as Opera and more) natively render SVG.


Finally, I&apos;m not sure if &quot;Concepts&quot; component is the most appropriate (&quot;Compositing&quot; and or &quot;Extensibility&quot; maybe?). Currently there&apos;s no specific &quot;Integration&quot; (with/into other technologies) component, so I take this opportunity to propose its creation (given that demand on this is raising as implementations  get better).


Hope this helps,
 Helder


[1] http://dev.w3.org/SVG/proposals/svg-html/svg-html-proposal.html
[2] http://www.nabble.com/forum/Search.jtp?query=SVG+HTML&amp;local=y&amp;forum=11732</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25284</commentid>
    <comment_count>2</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2009-05-24 12:39:01 +0000</bug_when>
    <thetext>&gt; please note that SVG in HTML is still being discussed.

That has nothing to do with this issue, though.  SVG in XHTML or other XML documents is in fact supported by the existing XML and SVG specifications, and SVG even has conformance requirements for the sizing of such SVG fragments...  And those are not tested, at the very least.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25285</commentid>
    <comment_count>3</comment_count>
    <who name="Lars Hellstr">Lars.Hellstrom</who>
    <bug_when>2009-05-24 18:14:57 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; (In reply to comment #0)
&gt; &gt; I&apos;m new at SVG, so it&apos;s quite possible I&apos;m missing something, but...
&gt; 
&gt; Well, you may double check that by crawling through the (&quot;www-svg&quot; and
&gt; &quot;public-html&quot;) mailing lists and/or creating a new thread... ;-)

Ah, so those have public archives? (I&apos;ve too often been &quot;burnt&quot; by communities that keep their mailing list archives subscribers-only to have considered that as a place to start.)

&gt; &gt; It seems the test suite, as presented at
&gt; &gt; http://www.w3.org/Graphics/SVG/Test/20061213/, only contains tests where the
&gt; &gt; SVG is (i) a stand-alone SVG Web page or (ii) embedded by reference into a Web
&gt; &gt; page. The Concepts chapter of the SVG 1.1 spec also lists (iii) embedding
&gt; &gt; inline as a way of including SVG content, so it seems reasonable that this
&gt; &gt; approach should be tested as well. Especially if browsers might process it
&gt; &gt; differently.
&gt; 
&gt; I share your opinion, but please note that SVG in HTML is still being
&gt; discussed. A proposal [1] already exists, and there has been warm discussion
&gt; [2] on HTML integration (more recently integration into HTML5). Naturally,
&gt; somewhere in time, I hope a test suite will be derived... :-)

As remarked in comment#2, I was thinking about SVG inline in XHTML, not HTML. The &quot;Web page&quot; wording is verbatim from the SVG specification.

&gt; &gt; As far as I can tell, Safari (3.2.1) uses a plugin for rendering SVG embedded
&gt; &gt; by reference, but renders inline SVG itself. Firefox (2.0.0) seems to not
&gt; &gt; render text in inline SVG although it renders text in referenced SVG, which
&gt; &gt; also suggests the two ways are handled differently.
&gt; 
&gt; This should only happen if you have an SVG viewer installed which registers
&gt; itself for the SVG MIME type. As far as I know, when default settings are used,
&gt; both implementations (as well as Opera and more) natively render SVG.

The plugin may be a leftover from Safari 2 days, or something. (Apple&apos;s Migration Assistant has a tendency to bring along all sorts of things one doesn&apos;t know about.)

&gt; Finally, I&apos;m not sure if &quot;Concepts&quot; component is the most appropriate
&gt; (&quot;Compositing&quot; and or &quot;Extensibility&quot; maybe?). Currently there&apos;s no specific
&gt; &quot;Integration&quot; (with/into other technologies) component, so I take this
&gt; opportunity to propose its creation (given that demand on this is raising as
&gt; implementations  get better).

My initial impulse was that it should belong with &quot;Test Suite&quot;, but that wasn&apos;t a component. Failing that, I (as per the Bug Writing Guidelines http://www.w3.org/Bugs/Public/page.cgi?id=bug-writing.html) looked for a &quot;General&quot; component, but that didn&apos;t exist either. The page of &quot;component 
descriptions&quot; (http://www.w3.org/Bugs/Public/describecomponents.cgi?product=SVG) didn&apos;t do much for describing the components, but at least it seems clear that the component division is merely according to the chapters of the specification, and as it happens it is in the &quot;Concepts&quot; chapter that it is claimed that SVG can be embedded inline in XHTML...

Some reform of the component division seems appropriate.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>