<?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>21482</bug_id>
          
          <creation_ts>2008-10-08 11:30:33 -0700</creation_ts>
          <short_desc>HTML OBJECT given height:150px and width:300px by default?</short_desc>
          <delta_ts>2008-10-08 14:17:39 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>16841</dup_id>
          
          <bug_file_loc>http://www.winserver.com/public/aup/default.htm</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jon@Chromium">jon</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94583</commentid>
    <comment_count>0</comment_count>
    <who name="Jon@Chromium">jon</who>
    <bug_when>2008-10-08 11:30:33 -0700</bug_when>
    <thetext>This is blocking Chromium see http://code.google.com/p/chromium/issues/detail?id=2210

For some reason this object which has no visible representation is given a default height and width.  This results in the rest of the content of the page being substantially lower than expected on the page.  Unfortunately, a popular documentation tool generates these pages.  Using CSS to explicitly set a width and height resolves the problem.

URLs (if applicable) : http://www.winserver.com/aupinfo
Other browsers tested:
     Safari 3: Not Tested
    Firefox 3: Not Tested
         IE 7: Not Tested
         IE 6: OK
  Firefox 1.5: OK
   Opera 9.27: OK
 K-meleon 1.2: OK

o What steps will reproduce the problem?

Create a simple web page and add &lt;object&gt; tag to after the &lt;BODY&gt; tag and 
before some viewable display you EXPECT to be at the top of the page. 

Example:

&lt;html&gt;
&lt;head&gt;
&lt;style&gt;body {margin: 5px; border: 2px solid black;}&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;object&gt;&lt;/object&gt;
&lt;H2&gt;Welcome to whatever...............&lt;/H2&gt;
&lt;/body&gt;
&lt;/html&gt;

Open the page with Chrome.

o What is the expected result? 

The &lt;H2&gt; tag is rendered at the top of the page.

o What happens instead?

It appears CHROME is given &lt;OBJECT&gt; some (random?) width and height and is 
rendering the &lt;H2&gt; at some location other than the top.

The workaround was to get the object a default style height and width.

OBJECT {
  width: 0px; height: 0px;
}

Attached is the screen shot for the above example.

NOTE: THIS IS IMPORTANT.

Many people use HTMLHELP to create Windows CHM Help files for their 
products and they may also copy the *.HTM source file to their WEB SITE for 
online viewing.  Just like we do at the http://www.winserver.com/aupinfo 
url.     I suggest only Safari and Chrome will have this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94604</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2008-10-08 13:49:28 -0700</bug_when>
    <thetext>Replaced elements without a given width or hight are defined to be 300px x 150px.  I believe this is works as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94612</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-10-08 14:17:39 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 16841 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>