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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 30 11:17:51 PDT 2008


           Summary: Computed style for margin right is incorrect.
           Product: WebKit
           Version: 526+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: erik.arvidsson at gmail.com

The computed style value for margin right is not correct and it does not match
Firefox nor Opera.

el.style.marginRight = '10px';
document.defaultView.getComputedStyle(el, '').marginRight // != 10px

The value returned seems to be related to the computed distance between the
offsetParent right edge and the right border of the element.  However it is not
equal to:

el.offsetParent.clientWidth - el.offsetLeft - el.offsetWidth

Test case coming.

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