<?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>11976</bug_id>
          
          <creation_ts>2006-12-26 00:04:20 -0800</creation_ts>
          <short_desc>&lt;object&gt; tags should treat width/height on a referenced SVG as intrinsic width/height</short_desc>
          <delta_ts>2012-05-19 08:33:55 -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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>10526</dependson>
    
    <dependson>12207</dependson>
    
    <dependson>15849</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hyatt</cc>
    
    <cc>jamesr</cc>
    
    <cc>jeffschiller</cc>
    
    <cc>leviw</cc>
    
    <cc>pascal22p</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39662</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-12-26 00:04:20 -0800</bug_when>
    <thetext>&lt;object&gt; tags should treat width/height on a referenced SVG as intrinsic width/height

This bug came out of the comments from:
http://bugs.webkit.org/show_bug.cgi?id=10526

It might even be a duplicate of bug 10526, but it was hard for me to tell what exactly bug 10526 is about.

Hyatt and I (and I think jwatt or tor was present as well) talked about treating &lt;svg&gt; specified width/height as intrinsic height when using an SVG image in an &lt;img&gt; tag or CSS background image.  In the comments of bug 10526 it was suggested that we also do so for &lt;object&gt; tags.  Making this work would be a nice step in the direction of having real SVG in &lt;img&gt; support.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39663</commentid>
    <comment_count>1</comment_count>
      <attachid>12026</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-12-26 00:15:59 -0800</bug_when>
    <thetext>Created attachment 12026
test case to demonstrate the desired behavior

I should note, that I know of no browser which behaves the way this test case expects it to be have.  Opera does not seem to use width for intrinsic size (at least 9.01 does not).  Opera does seem to use the height attribute on the SVG for intrinsic height however.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7803</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-06-12 10:37:48 -0700</bug_when>
    <thetext>Either way, this should be done after the SVGRenderRoot split, bug 12207.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7606</commentid>
    <comment_count>3</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2007-06-13 22:31:25 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Created an attachment (id=12026) [edit]
&gt; test case to demonstrate the desired behavior
&gt; 
&gt; I should note, that I know of no browser which behaves the way this test case
&gt; expects it to be have.  Opera does not seem to use width for intrinsic size (at
&gt; least 9.01 does not).  Opera does seem to use the height attribute on the SVG
&gt; for intrinsic height however.

I am not sure this testcase is correct. Needs discussion with Eric I think.
Cheers,

Rob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7566</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-06-14 09:55:23 -0700</bug_when>
    <thetext>I think this is basically the same bug as:
http://bugs.webkit.org/show_bug.cgi?id=10526
One could probably be duped against the other.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7560</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-06-14 10:17:06 -0700</bug_when>
    <thetext>We discussed the test case.  It&apos;s correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57380</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-09-29 15:45:25 -0700</bug_when>
    <thetext>void RenderHTMLCanvas::canvasSizeChanged()

is a good example of how we could do this.  It is called when &lt;canvas&gt; changes size.  We just need to add a similar method to RenderPartObject and have SVGSVGElement call it appropriately.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65385</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-27 02:30:16 -0800</bug_when>
    <thetext>The real way to fix this is bug 15849.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113865</commentid>
    <comment_count>8</comment_count>
    <who name="Pascal">pascal22p</who>
    <bug_when>2009-03-16 06:58:47 -0700</bug_when>
    <thetext>This bug is still not solved. I have hit the problem myself. Here is an example:
http://pascal.parois.net/public/webkit/arbre.html

Firefox 3 and opera 10 render it properly (not opera 9). I don&apos;t about IE with the appropriate plugin.

This has been tested on the last nighty build : r41707 on linux.

Cheers,
Pascal</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>411353</commentid>
    <comment_count>9</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2011-05-27 05:39:53 -0700</bug_when>
    <thetext>The patch on bug 10526 fixes this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>411577</commentid>
    <comment_count>10</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2011-05-27 11:29:11 -0700</bug_when>
    <thetext>Fixed in r87526.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>442020</commentid>
    <comment_count>11</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2011-07-25 17:31:33 -0700</bug_when>
    <thetext>Re-opening because the fix that was originally landed is being reverted. See Bug 64974. Feel free to close this and open one of the many related ones if they do a better job describing the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>628419</commentid>
    <comment_count>12</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2012-05-19 08:33:55 -0700</bug_when>
    <thetext>Closing again, the test case works fine and is covered by tests in trunk.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>12026</attachid>
            <date>2006-12-26 00:15:59 -0800</date>
            <delta_ts>2006-12-26 00:15:59 -0800</delta_ts>
            <desc>test case to demonstrate the desired behavior</desc>
            <filename>test.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>899</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgU3RyaWN0Ly9FTiIg
Imh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXN0cmljdC5kdGQiPgo8aHRt
bCB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCIgeG1sOmxhbmc9ImVuIj4KPGJv
ZHk+CjxvYmplY3QgdHlwZT0iaW1hZ2Uvc3ZnK3htbCIgZGF0YT0iZGF0YTppbWFnZS9zdmcreG1s
O2NoYXJzZXQ9dXRmLTgsJTNDc3ZnJTIwd2lkdGglM0QlMjIxMDBweCUyMiUyMGhlaWdodCUzRCUy
MjEwMHB4JTIyJTIweG1sbnMlM0QlMjJodHRwJTNBJTJGJTJGd3d3LnczLm9yZyUyRjIwMDAlMkZz
dmclMjIlM0UlM0NyZWN0JTIwZmlsbCUzRCUyMmdyZWVuJTIyJTIwd2lkdGglM0QlMjIxMDBweCUy
MiUyMGhlaWdodCUzRCUyMjEwMHB4JTIyJTIwJTJGJTNFJTNDJTJGc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