[Webkit-unassigned] [Bug 17966] New: Clearing via br behaves unpredictable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 20 05:32:38 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=17966

           Summary: Clearing via br behaves unpredictable
           Product: WebKit
           Version: 525.x (Safari 3.1)
          Platform: Macintosh Intel
               URL: http://ericeggert.net/webkit/2008-03-20/1.html
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: webkit at yatil.de


In a German mailing list a bug was discovered which seems to be related to
fonts and the width of block elements. It was discovered in Safari 3.1 (Windows
and Mac). 

The web developer who discovered it uses <br style="clear:right" /> to clear
his floats, which works under certain circumstances and doesn’t under others.
As you can see in the document the first example is not cleared while both
other examples do.

The difference between example one and two is the omission of a space between
an em and an img element. In example three there is no border around the image,
which seems to leave more space, which is needed for the br to unfold it’s
clearing magic.

The problem can be worked around by assigning a different typeface[1] or
another font size[2], which may or may not be what you’d like to do in such a
situation. The problem disappears if the user is resizing the text (larger or
smaller). Even just playing with the widths of the container or margins and
paddings can lead to a correct behavior. But this issue seems to be even
dependent on the content of the elements. If I short the word to „Angestellt“
the issue disappears.[3]

The latest Nightly built doesn’t respect that method of clearing at all, at
least in different font and even window sizes, which is more than strange.[4–6]

[1] http://ericeggert.net/webkit/2008-03-20/2.html
[2] http://ericeggert.net/webkit/2008-03-20/3.html
[3] http://ericeggert.net/webkit/2008-03-20/4.html
[4] http://ericeggert.net/webkit/2008-03-20/webkit-nightly1.png (After
load/reload)
[5] http://ericeggert.net/webkit/2008-03-20/webkit-nightly2.png (Resized
window, no reload)
[6] http://ericeggert.net/webkit/2008-03-20/webkit-nightly3.png (Font size
smaller, two times)

Probably it’s a good idea to discourage float clearing with the br element, but
the Safari/Webkit Nightly behavior seems to be quite inconsistent.

I hope that the description, examples and screenshots help to confirm the issue
and solve it.


-- 
Configure bugmail: http://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