[Webkit-unassigned] [Bug 13526] Overlapping site image on The awesome Giveaway of the Day site

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Apr 28 16:14:07 PDT 2007


------- Comment #9 from hyatt at apple.com  2007-04-28 16:14 PDT -------
It looks like Firefox is solving the shrink-to-fit equation of CSS2.1 for
floats using the available line width instead of the containing block width.


"Calculation of the shrink-to-fit width is similar to calculating the width of
a table cell using the automatic table layout algorithm. Roughly: calculate the
preferred width by formatting the content without breaking lines other than
where explicit line breaks occur, and also calculate the preferred minimum
width, e.g., by trying all possible line breaks. CSS 2.1 does not define the
exact algorithm. Thirdly, find the available width: in this case, this is the
width of the containing block minus the used values of 'margin-left',
'border-left-width', 'padding-left', 'padding-right', 'border-right-width',
'margin-right', and the widths of any relevant scroll bars.

Then the shrink-to-fit width is: min(max(preferred minimum width, available
width), preferred width)."

Note that the available width is typically the containing block's content width
and not the available line width.  It sounds like CSS2.1 is not really specific
enough for either browser to be incorrect, since the language is pretty vague.

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