[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konq-bugs
Subject:    Bug#39722: (no subject)
From:       David Joham <djoham () yahoo ! com>
Date:       2002-05-30 5:21:02
[Download RAW message or body]


kdelibs/rendering/render_object.cpp version 1.175 in CVS claims to fix
this bug and according to the recreation given does indeed do so.

However, the fix in version 1.175 introduces a serious regression when
using visibility: hidden CSS and nested divs. 

Although the DIV's are hidden from view when using visibility:hidden,
they still act as though they are on the screen as far as javascript
and other CSS attributes are concerned.

I've modified the test case slightly to demonstrate. When this page is
loaded, you should see a blank screen. Moving your mouse around on the
screen should not cause the onmouseover event of the nested DIV to
fire.

However, with this fix, the event does fire and thus causes all sorts
of havoc :)

You would also see the problem with some CSS properties such as
pointer:hand if it had been assigned to the nested DIV

Recreation below.....


<html>
<style>
#adv { POSITION: absolute; left: 50px ; top: 0px ; visibility: hidden}
#Buttons { POSITION: absolute; top: 80px; visibility: inherit; }
</style>
<body>

<DIV ID="Buttons">
<DIV id="adv" onmouseover="alert('I should not come up')">
<a href="javaScript:alert('It works')">Click here, you should see a
message box</a>
</DIV>
</DIV>

</body>
</html>

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


(Complete bug history is available at http://bugs.kde.org/db/39/39722.html)
_______________________________________________
Konq-bugs mailing list
Konq-bugs@mail.kde.org
http://mail.kde.org/mailman/listinfo/konq-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic