[Webkit-unassigned] [Bug 17580] float:left in the parent div is causing the layout issue
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Feb 28 11:14:17 PST 2008
http://bugs.webkit.org/show_bug.cgi?id=17580
webkit at blaut.biz changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |webkit at blaut.biz
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Comment #3 from webkit at blaut.biz 2008-02-28 11:14 PDT -------
This is not a bug. The test case is rendered correctly by Webkit, Minefield
(Firefox 3) and Presto (Opera 9.50). Firefox 2 renders it buggy. The parent div
is floated element so the width of the element should be calculated using
"shrink-to-fit' method:
"If 'width' is computed as 'auto', the used value is the "shrink-to-fit" 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."
[http://www.w3.org/TR/CSS21/visudet.html#float-width]
--
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