[Webkit-unassigned] [Bug 17272] position:absolute breaks the text at at word boundaries.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Feb 10 01:17:07 PST 2008


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


webkit at blaut.biz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |webkit at blaut.biz
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID
            Summary|position:absolute breaks the|position:absolute breaks the
                   |text at word boundaries.    |text at at word boundaries.




------- Comment #2 from webkit at blaut.biz  2008-02-10 01:17 PDT -------
The CSS 2.1 spec says
(http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width):

"The constraint that determines the used values for these elements is:

'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' +
'padding-right' + 'border-right-width' + 'margin-right' + 'right' + scrollbar
width (if any) = width of containing block

If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto'
values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction'
property of the containing block is 'ltr' set 'left' to the static position and
apply rule number three below; otherwise, set 'right' to the static position
and apply rule number one below."

"1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is
shrink-to-fit. Then solve for 'left'"

"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, calculate the available width: this is found by
solving for 'width' after setting 'left' (in case 1) or 'right' (in case 3) to
0.

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


According above algoritm Webkit, Firefox, Opera renders it properly. IE renders
it incorrectly. The bug is INVALID.


-- 
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