[Webkit-unassigned] [Bug 19828] Computed style for margin right is incorrect.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 6 05:09:40 PST 2009


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


webkit at blaut.biz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |webkit at blaut.biz




------- Comment #3 from webkit at blaut.biz  2009-01-06 05:09 PDT -------
CSS 2.1 specification says: "The following constraints must hold among the used
values of the other properties:
'margin-left' + 'border-left-width' + 'padding-left' + 'width' +
'padding-right' + 'border-right-width' + 'margin-right' + scrollbar width (if
any) = width of containing block"

[...]

If all of the above have a computed value other than 'auto', the values are
said to be "over-constrained" and one of the used values will have to be
different from its computed value. If the 'direction' property of the
containing block has the value 'ltr', the specified value of 'margin-right' is
ignored and the value is calculated so as to make the equality true. If the
value of 'direction' is 'rtl', this happens to 'margin-left' instead."

<http://www.w3.org/TR/CSS21/visudet.html#blockwidth>

In my opinion WebKit correctly prints other than 10px *computed* value. Firefox
is wrong in this case. 

Check attached test case.


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