WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
31823
List-items .height() value incorrect
https://bugs.webkit.org/show_bug.cgi?id=31823
Summary
List-items .height() value incorrect
Rick van de Westelaken
Reported
2009-11-24 01:44:31 PST
Floated or display:block list-items (<li>) will generate a wrong .height() readout in Javascript. I've alerted the raw output of the li.height() and viewed the wrong height (in px) to be returned. I could not find a direct relation between the expected value and the actual value. This issue happens in both Safari and Chrome, with the latest (nightlty) WebKit engine (in case of Chrome, the dev branch of the browser). In all other browsers results are as expected. The issue will not always appear (not even while using a static version of the html). When the issue occurs, a page refresh will solve the problem. Spotted the issue on both Windows XP as OSX 10.5 with both Safari and Chrome.
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2009-11-24 13:16:25 PST
Do you have an example page where this occurs? It's difficult to re-create a problem from the above description, especially if it's transient.
> This issue happens in both Safari and Chrome, with the latest (nightlty) WebKit engine
Does this happen with shipping WebKit, too? In other words, is it a regression?
Rick van de Westelaken
Comment 2
2009-11-25 00:42:32 PST
> Does this happen with shipping WebKit, too? In other words, is it a regression?
Yes, it fails there as well. I can't provide a testcase yet, but I'll add the failing website as soon at is goes live.
Rick van de Westelaken
Comment 3
2009-12-08 04:26:05 PST
Bug can be dropped. Issue was related to Javascript semantics and threading, not specifically related to Webkit (although it only showed there).
Rick van de Westelaken
Comment 4
2010-01-27 01:52:38 PST
Reopen: bug still persistent. Code:
http://www.hero.nl/js/default.js
Line: 175 Example:
http://www.hero.nl/257/producten/hero-fruitontbijt.html
The height (40px or 115px) can't be read-out by Webkit using .height(). In about 1 in 4 hits the height is calculated to low, causing the menu not to fully open on slide. Happens in the nightly as well.
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