[Webkit-unassigned] [Bug 51705] New: Adding padding causes div to have incorrect width until reflow

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 29 07:21:12 PST 2010


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

           Summary: Adding padding causes div to have incorrect width
                    until reflow
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ezra at ezra.co.nz


Adding padding causes div to have incorrect width until reflow
When dynamically adding padding to a block level element, nested inside a block level element with a defined width, the inside does not recalculate it’s width until a reflow is triggered.

Steps to Reproduce
1) View the attachment 
2) Click the link “Click me”

Actual Result
Padding is added to #padding, causing #inner to move to the right. The width of #inner is not recalculated causing it to extend past the edge of #padding. 
The correct width can be recalculated in a few ways including switching to another browser tab and back, or hovering over #inside (this will give it 10px padding).

Expected Result
Padding should be added to #padding, causing #inner to move to the right. The width of #inner should be recalculated so it has an equal padding on the right.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list