<?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>22457</bug_id>
          
          <creation_ts>2013-06-25 16:41:51 +0000</creation_ts>
          <short_desc>Issues with the section on view elements.</short_desc>
          <delta_ts>2018-12-01 21:31:17 +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>Linking</component>
          <version>SVG 1.1 Full</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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="Paul LeBeau">paul.lebeau</reporter>
          <assigned_to name="Doug Schepers">schepers</assigned_to>
          <cc>longsonr</cc>
    
    <cc>rozjlittles</cc>
          <deadline>2018-12-30</deadline>
          <qa_contact name="SVG Public List">www-svg</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>89821</commentid>
    <comment_count>0</comment_count>
    <who name="Paul LeBeau">paul.lebeau</who>
    <bug_when>2013-06-25 16:41:51 +0000</bug_when>
    <thetext>1. The Linking section is very web centric and assumes that Views are always targets of a link.  It doesn&apos;t allow for the fact that a non-web renderer might use views to render selected parts of a document.

2. Because of #1, important explanations of how views should be handled are buried in the section on fragment identifiers.

   For example the second bullet in the list at the end of section 17.3.2 contains (among other things) the following important information:

   &quot;Any view specification attributes included on the given ‘view’ element override the corresponding view specification attributes on the closest ancestor ‘svg’ element.&quot;

   Which brings us to point 3

3. No renderer that I have tried follows this instruction.  FF, IE, Chrome and Batik all apply the viewBox to the *outermost* &lt;svg&gt; element.

   Since this part of the spec seems to be ignored by the majority of renderers, there is maybe a case for altering the requirement.

4. Having a &lt;view&gt; viewBox override an ancestor &lt;svg&gt; viewBox can significantly alter the layout of an SVG document.  It changes what &quot;100%&quot; means.  This IMO is very counter-intuitive.  However I realise that changing this behaviour is unlikely because it would break backwards-compatibility.


Suggested actions for consideration.

1. Expand section 17.3.3 with a better explanation of the purpose of Views and include any important information on rendering behaviour (such as the override requirement).  Allow for the fact that non-browser renderers may be using Views.

2. Change &quot;closest ancestor svg element&quot; to &quot;outermost ancestor svg element&quot; in the section described above (17.3.2 bullet two) to match real world practice.

3. Consider altering the semantics that state that view element attributes override the svg attributes.  A view should be a view onto an SVG document and should not alter the layout of the document.

4. There is a DOM interface for SVGViewElement but I don&apos;t see any function for selecting a view.  Should there be?  For instance:

interface SVGDocument : Document, DocumentEvent {
  ...
boolean selectView(in SVGViewElement v);
  ...
};</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89834</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Longson">longsonr</who>
    <bug_when>2013-06-25 18:36:14 +0000</bug_when>
    <thetext>suggested actions 1 &amp; 2 seem good but

3. Changing this would break existing content e.g. http://hoffmann.bplaced.net/svgtest/view01.svg

4. There is a DOM: http://www.w3.org/TR/SVG/linking.html#InterfaceSVGViewElement</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89841</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Longson">longsonr</who>
    <bug_when>2013-06-25 20:13:31 +0000</bug_when>
    <thetext>To select a view you&apos;d have to change the browser&apos;s URL (location.href) to something that pointed to the view so that&apos;s possible.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>