<?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>27978</bug_id>
          
          <creation_ts>2009-08-04 02:44:02 -0700</creation_ts>
          <short_desc>getBoundingClientRect method of DOM element return wrong value for some page</short_desc>
          <delta_ts>2026-01-28 17:45:14 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=54813</see_also>
          <bug_file_loc></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="String">tiansjun</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>karlcow</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>136956</commentid>
    <comment_count>0</comment_count>
    <who name="String">tiansjun</who>
    <bug_when>2009-08-04 02:44:02 -0700</bug_when>
    <thetext>http://www.gamespot.com/pc/strategy/sinsofasolarempire/review.html

I try to get the clinet rectangle of this page by invoking &quot;getBoundingClientRect&quot; on the &lt;html&gt; element. But it returns an rectangle with zero height. I also inspect this page in safari4.0.2 and arora8.0, both give height=0 for &lt;html&gt; element.

The Qwebframe::contentSize() can give a non-empty result for this page.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2176029</commentid>
    <comment_count>1</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-01-28 17:44:59 -0800</bug_when>
    <thetext>The page now redirects to 
https://www.gamespot.com/reviews/sins-of-a-solar-empire-review/1900-6185991/
which doesn&apos;t have the issue. 

This might have been a duplicate Bug 54813

&gt; document.querySelector(&quot;html&quot;).getBoundingClientRect()
&lt; DOMRect = $1

bottom: 1287

height: 1287

left: 0

right: 1593

top: 0

width: 1593

x: 0

y: 0

DOMRect Prototype</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>