<?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>5940</bug_id>
          
          <creation_ts>2005-12-04 23:56:42 -0800</creation_ts>
          <short_desc>&lt;svg&gt; inside &lt;body&gt; incorrectly extends over top/bottom borders</short_desc>
          <delta_ts>2007-07-14 16:17:16 -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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://developer.mozilla.org/presentations/xtech2005/svg-canvas/SVGDemo.xml</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NeedsReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>12207</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rob Buis">rwlbuis</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>25544</commentid>
    <comment_count>0</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2005-12-04 23:56:42 -0800</bug_when>
    <thetext>Hi,

See topic :)
It seems like the big gradient renders over everyhing else?
Cheers,

Rob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25659</commentid>
    <comment_count>1</comment_count>
      <attachid>4987</attachid>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2005-12-07 04:51:32 -0800</bug_when>
    <thetext>Created attachment 4987
Reduced testcase

This testcase has script and style elements removed. Also just one svg
shape(rect) and
a form that should display over the svg rect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25690</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-07 23:47:49 -0800</bug_when>
    <thetext>I bet my disabling of RenderLayer creation for svg elements is causing the z-ordering system to be 
confused...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28488</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-01-15 03:10:42 -0800</bug_when>
    <thetext>This will crash recent development builds due to an ASSERT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30164</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-01-26 14:54:19 -0800</bug_when>
    <thetext>Removing:
    virtual bool requiresLayer() { return false; }
should fix this.  The problem then becomes making sure that they layer code doesnt&apos; cause double-opacity in certain instances, since the SVG render objects handle their own opacity instead of relying on RenderLayer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52291</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-08-11 21:50:23 -0700</bug_when>
    <thetext>This seems to be a CSS selector problem at this point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52292</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-08-11 21:56:16 -0700</bug_when>
    <thetext>Actually, I was wrong.  This is still a z-order issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29890</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-01-31 04:45:40 -0800</bug_when>
    <thetext>It seems that webkit renders it fine now, except for slice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8513</commentid>
    <comment_count>8</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-06-01 15:54:22 -0700</bug_when>
    <thetext>It&apos;s still not clipping 100% correctly.  The top and bottom extend too far.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8514</commentid>
    <comment_count>9</comment_count>
      <attachid>14836</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-06-01 16:03:18 -0700</bug_when>
    <thetext>Created attachment 14836
even better test case

This seems to be a CDF interaction problem.  Somehow the SVG thinks it is taller than it should think it is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7532</commentid>
    <comment_count>10</comment_count>
      <attachid>15030</attachid>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2007-06-14 13:49:22 -0700</bug_when>
    <thetext>Created attachment 15030
Fix z-index problems

This should fix the last issue. It still needs a testcase, but that should be easy. What is more annoying is that it changes most DRT results. So we may need to wait with it and make RenderSVGRoot output RenderSVGRoot instead of RenderSVGContainer in the DRT in one fell swoop.
Cheers,

Rob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7531</commentid>
    <comment_count>11</comment_count>
      <attachid>15030</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-06-14 13:51:38 -0700</bug_when>
    <thetext>Comment on attachment 15030
Fix z-index problems

Perfect.  The final patch will need to include test updates as well as this new test.

However the code change itself looks great.  Rob will land this later this week.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5403</commentid>
    <comment_count>12</comment_count>
      <attachid>15030</attachid>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-07-06 03:15:21 -0700</bug_when>
    <thetext>Comment on attachment 15030
Fix z-index problems

Rob said there is an issue with SVG + z-indexing that he needs to discuss with Hyatt before this can be landed.  Marking as r- to get it out of the commit queue for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4706</commentid>
    <comment_count>13</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2007-07-14 16:16:25 -0700</bug_when>
    <thetext>Fixed in r24292.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4987</attachid>
            <date>2005-12-07 04:51:32 -0800</date>
            <delta_ts>2007-06-01 16:03:18 -0700</delta_ts>
            <desc>Reduced testcase</desc>
            <filename>SVGDemo.xml</filename>
            <type>application/xml</type>
            <size>831</size>
            <attacher name="Rob Buis">rwlbuis</attacher>
            
              <data encoding="base64">PGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiPgo8aGVhZD4KICA8dGl0
bGU+WFRlY2ggU1ZHIERlbW88L3RpdGxlPgo8L2hlYWQ+Cjxib2R5IGlkPSJib2R5IgogICBzdHls
ZT0icG9zaXRpb246YWJzb2x1dGU7IHotaW5kZXg6MDsgYm9yZGVyOjFweCBzb2xpZCBibGFjazsg
bGVmdDo1JTsgdG9wOjUlOyB3aWR0aDo5MCU7IGhlaWdodDo5MCU7Ij4KICA8Zm9ybT4KICAgICA8
ZmllbGRzZXQ+CiAgICAgICA8bGVnZW5kPkhUTUwgRm9ybTwvbGVnZW5kPgogICAgICAgPHA+PGJ1
dHRvbj5BY3RpdmF0ZSE8L2J1dHRvbj48L3A+CiAgICAgPC9maWVsZHNldD4KICA8L2Zvcm0+CiAg
PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIKICAg
IHZpZXdCb3g9IjAgMCAxMDAgMTAwIgogICAgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQg
c2xpY2UiCiAgICBzdHlsZT0id2lkdGg6MTAwJTsgaGVpZ2h0OjEwMCU7IHBvc2l0aW9uOmFic29s
dXRlOyB0b3A6MDsgbGVmdDowOyB6LWluZGV4Oi0xOyI+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9
ImdyYWRpZW50Ij4KICAgICAgPHN0b3Agc3RvcC1jb2xvcj0ieWVsbG93IiBjbGFzcz0iYmVnaW4i
IG9mZnNldD0iMCUiLz4KICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iZ3JlZW4iIGNsYXNzPSJlbmQi
IG9mZnNldD0iMTAwJSIvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDxyZWN0IHg9IjAiIHk9
IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIgogICAgIHN0eWxlPSJmaWxsOnVybCgjZ3JhZGll
bnQpIiAvPgogIDwvc3ZnPgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>14836</attachid>
            <date>2007-06-01 16:03:18 -0700</date>
            <delta_ts>2007-06-01 16:03:18 -0700</delta_ts>
            <desc>even better test case</desc>
            <filename>slice.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>301</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">PGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiPgo8Ym9keSBzdHlsZT0i
Ym9yZGVyOjFweCBzb2xpZCBibGFjazsgd2lkdGg6OTAlOyBoZWlnaHQ6OTAlOyI+CiAgPHN2ZyB4
bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIKICAgIHZpZXdC
b3g9IjAgMCAxMDAgMTAwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBzbGljZSI+CiAg
ICA8cmVjdCB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0iYmx1ZSIgLz4KICA8L3N2Zz4K
PC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>15030</attachid>
            <date>2007-06-14 13:49:22 -0700</date>
            <delta_ts>2007-07-06 03:15:21 -0700</delta_ts>
            <desc>Fix z-index problems</desc>
            <filename>5940.diff</filename>
            <type>text/plain</type>
            <size>1829</size>
            <attacher name="Rob Buis">rwlbuis</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAyMzUzNCkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTcgQEAKKzIwMDctMDYtMTQgIFJvYiBCdWlzICA8YnVpc0BrZGUub3JnPgorCisg
ICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIFdBUk5JTkc6IE5P
IFRFU1QgQ0FTRVMgQURERUQgT1IgQ0hBTkdFRAorCisgICAgICAgIGh0dHA6Ly9idWdzLndlYmtp
dC5vcmcvc2hvd19idWcuY2dpP2lkPTU5NDAKKyAgICAgICAgPHN2Zz4gaW5zaWRlIDxib2R5PiBp
bmNvcnJlY3RseSBleHRlbmRzIG92ZXIgdG9wL2JvdHRvbSBib3JkZXJzCisKKyAgICAgICAgVGFr
ZSBpbnRvIGFjY291bnQgei1pbmRleCBmb3Igb3V0ZXIgPHN2Zz4uCisKKyAgICAgICAgKiByZW5k
ZXJpbmcvUmVuZGVyU1ZHUm9vdC5jcHA6CisgICAgICAgICogcmVuZGVyaW5nL1JlbmRlclNWR1Jv
b3QuaDoKKwogMjAwNy0wNi0xNCAgRXJpYyBTZWlkZWwgIDxlcmljQHdlYmtpdC5vcmc+CiAKICAg
ICAgICAgUmV2aWV3ZWQgYnkgTmlrby4KSW5kZXg6IFdlYkNvcmUvcmVuZGVyaW5nL1JlbmRlclNW
R1Jvb3QuY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlY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25zdCBjaGFyKiByZW5kZXJOYW1lKCkgY29uc3QgeyBy
ZXR1cm4gIlJlbmRlclNWR0NvbnRhaW5lciI7IH0KICAgICAgICAgCi0gICAgdmlydHVhbCBib29s
IHJlcXVpcmVzTGF5ZXIoKTsKICAgICB2aXJ0dWFsIHNob3J0IGxpbmVIZWlnaHQoYm9vbCBiLCBi
b29sIGlzUm9vdExpbmVCb3ggPSBmYWxzZSkgY29uc3Q7CiAgICAgdmlydHVhbCBzaG9ydCBiYXNl
bGluZVBvc2l0aW9uKGJvb2wgYiwgYm9vbCBpc1Jvb3RMaW5lQm94ID0gZmFsc2UpIGNvbnN0Owog
ICAgIAo=
</data>
<flag name="review"
          id="6194"
          type_id="1"
          status="-"
          setter="mrowe"
    />
          </attachment>
      

    </bug>

</bugzilla>