<?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>6093</bug_id>
          
          <creation_ts>2005-12-15 02:09:53 -0800</creation_ts>
          <short_desc>The outermost &lt;svg&gt; element needs to clip itself</short_desc>
          <delta_ts>2006-01-26 14:30:23 -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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5358</dup_id>
          
          <bug_file_loc>http://openclipart.org/clipart//animals/new_penguin_charles_mcco_01.svg</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Eric Seidel (no email)">eric</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>25987</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-15 02:09:53 -0800</bug_when>
    <thetext>According to the spec:

When an outermost SVG &apos;svg&apos; element is stand-alone or embedded inline within a parent XML grammar 
which does not use CSS layout [CSS2-LAYOUT] or XSL formatting [XSL], the &apos;overflow&apos; property on the 
outermost &apos;svg&apos; element is ignored for the purposes of visual rendering and the initial clipping path is set 
to the bounds of the initial viewport.

We need to ignore overflow when being the &quot;root&quot; object, and do our own clipping to the viewport.  Hyatt 
is just about to fix it so that we do not apply overflow on the root object.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25988</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-15 02:20:31 -0800</bug_when>
    <thetext>Actually, I have a patch which fixes both sides of this issue which I&apos;ll attach here once I can untangle it 
from the rest of the changes in my tree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26016</commentid>
    <comment_count>2</comment_count>
      <attachid>5098</attachid>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2005-12-15 11:34:07 -0800</bug_when>
    <thetext>Created attachment 5098
Patch that disallows overflow:hidden on &lt;svg&gt;s that are root elements.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26017</commentid>
    <comment_count>3</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2005-12-15 11:36:35 -0800</bug_when>
    <thetext>I landed the css portion of this patch.  There will still need to be additional code to set the initial clipping 
path to the bounds of the initial SVG viewport.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28490</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-01-15 03:12:15 -0800</bug_when>
    <thetext>*** Bug 5977 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30147</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-01-26 14:30:23 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 5358 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>5098</attachid>
            <date>2005-12-15 11:34:07 -0800</date>
            <delta_ts>2005-12-15 11:34:07 -0800</delta_ts>
            <desc>Patch that disallows overflow:hidden on &lt;svg&gt;s that are root elements.</desc>
            <filename>patch.txt</filename>
            <type>text/plain</type>
            <size>851</size>
            <attacher name="Dave Hyatt">hyatt</attacher>
            
              <data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