Bug 49651 - Document reflows on :hover
Summary: Document reflows on :hover
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-24 23:43 UTC by Jim Dabell
Modified: 2002-10-29 14:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
HTML file for testcase (4.08 KB, text/html)
2002-10-24 23:44 UTC, Jim Dabell
Details
CSS file for testcase (604 bytes, text/css)
2002-10-24 23:45 UTC, Jim Dabell
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***.