WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
27978
getBoundingClientRect method of DOM element return wrong value for some page
https://bugs.webkit.org/show_bug.cgi?id=27978
Summary
getBoundingClientRect method of DOM element return wrong value for some page
String
Reported
2009-08-04 02:44:02 PDT
http://www.gamespot.com/pc/strategy/sinsofasolarempire/review.html
I try to get the clinet rectangle of this page by invoking "getBoundingClientRect" on the <html> 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 <html> element. The Qwebframe::contentSize() can give a non-empty result for this page.
Attachments
Add attachment
proposed patch, testcase, etc.
Karl Dubost
Comment 1
2026-01-28 17:44:59 PST
The page now redirects to
https://www.gamespot.com/reviews/sins-of-a-solar-empire-review/1900-6185991/
which doesn't have the issue. This might have been a duplicate
Bug 54813
> document.querySelector("html").getBoundingClientRect()
< DOMRect = $1 bottom: 1287 height: 1287 left: 0 right: 1593 top: 0 width: 1593 x: 0 y: 0 DOMRect Prototype
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug