CSS relayout infinite loop

Aaron Seigo aseigo at kde.org
Wed Dec 22 19:15:43 GMT 2004


hi..

my bank recently changed their home page and it revealed a bug in khtml that's 
in both HEAD and 3.2.2. it causes khtml to be unresponsive on even very fast 
hardware. you can see the effect at:

	http://bddf.ca/~aseigo/jitterbug.html

the essential html is:

<html>
<body>
<style type="text/css">
    .dropShadow { position: relative; left: 20px; }
    .searchBoxHome { float: left; }
</style>

<div class="dropShadow">
    <div class="searchBoxHome">
        <form>
            <input type="text" value="Jitter back and forth!">
        </form>
        Jitterbug
    </div>
</div>
</body>
</html>

due to the nested <div>'s, text content gets painted twice at an offset of 
20px. for form elements, this triggers an infinite loop and the text field 
moves back and forth as quickly as possible (which, it turns out, is pretty 
quick =)

shall open a BR for this, or do one of the resident khtml gurus know how to 
fix this or where to start looking?

-- 
Aaron J. Seigo
Society is Geometric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20041222/0135d940/attachment.sig>


More information about the kfm-devel mailing list