Bug 49651

Summary: Document reflows on :hover
Product: [Applications] konqueror Reporter: Jim Dabell <jim>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: HTML file for testcase
CSS file for testcase

Description Jim Dabell 2002-10-24 23:43:29 UTC
Version:            (using KDE KDE 3.0.8)
Installed from:    Compiled From Sources
Compiler:          GCC 3.2 
OS:          Linux

Under some circumstances, moving the mouse over a link causes the entire page to reflow, causing a nasty "jumping" effect.  I haven't tracked down all the factors, but I've gotten close:

1.  It requires an external stylesheet

2.  The page has to require a vertical scrollbar without the stylesheet applied, and should not require a vertical scrollbar with the stylesheet applied.  This is quite common with floated navbars, for example.

3.  When the page loads, a vertical scrollbar is created.

4.  When the stylesheet is applied, it disappears, leaving "dead space".

5.  When you have a :hover rule, and you move the mouse over a link, the page reflows, taking advantage of the new space.

6.  Subsequent mouseovers don't affect the page, only the first one.

This doesn't look serious in my test case, however when you have a lot of elements on the screen, it can be very distracting.

Also, for some reason, the bug is not apparent unless you specify the 'color' property in your :hover rule.  I don't know if more cases are affected, but this is affecting quite a few designs of mine, and I don't particularly want to check them all to see if they fit this description when it's probably a single bug affecting them all.
Comment 1 Jim Dabell 2002-10-24 23:44:16 UTC
Created attachment 259 [details]
HTML file for testcase
Comment 2 Jim Dabell 2002-10-24 23:45:07 UTC
Created attachment 260 [details]
CSS file for testcase
Comment 3 Stephan Binner 2002-10-27 09:36:28 UTC
Sounds like bug #48180 is maybe related to this.  
Comment 4 Jim Dabell 2002-10-27 17:12:19 UTC
Did you mean a different bug?  The one you referenced doesn't seem to be   
anything to do with khtml.  
  
btw, I tried searching before submitting this bug, but the search engine  
rejects three letter words, so searching for css is useless (I did browse  
through the bugs suggested by bugzilla though, and nothing matched).  
  
Comment 5 Dirk Mueller 2002-10-29 14:51:00 UTC
*** Bug has been marked as fixed ***.