[Webkit-unassigned] [Bug 23248] CSS class change result in inconsistent layout

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 20 10:19:34 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=23248





------- Comment #4 from hyatt at apple.com  2009-02-20 10:19 PDT -------
This bug is tricky.

The layout issue is basically caused by our inability to compute the correct
m_maxPrefWidth for a rendering like this:

<div style="position:absolute">
<div style="float:right">Hello</div>
<div><input type=text></div>
</div>

It's hard for us to tell whether the float is going to fit into the next block
in calcBlockPrefWidths.

In the real test case attached to the bug, the initial display:block on the
first div causes us to create an anonymous block to wrap the input field.  When
the first div is switched to just being floating instead, we could technically
revert back to being inline again and remove the anonymous block (pulling its
kids back up).

So either trying to fix maxPrefWidth or trying to make anonymous blocks go away
properly when float/position changes would fix the bug.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list