[Webkit-unassigned] [Bug 137922] New: border-box with max-width and percent padding results in incorrect positioning after window resize

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 21 08:15:35 PDT 2014


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

            Bug ID: 137922
           Summary: border-box with max-width and percent padding results
                    in incorrect positioning after window resize
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Macintosh
                OS: Mac OS X 10.9
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jsitter at gmail.com

1. Set -webkit-box-sizing: border-box on all elements.
2. Create a div inside another div.
3. Give the outer div a max-width in pixels and a horizontal padding in percent.
4. Resize the browser window. The size of the inner div will change. With enough resizing, the inner div can be made to grow outside of the bounds of the outer div. This is most easily seen if you put a border on each div.

Here's a Stack Overflow thread about the issue with links to jsfiddles:

http://stackoverflow.com/questions/18139760/border-box-padding-max-width-jumping-elements

http://jsfiddle.net/Fw4dg/2/embedded/result/

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141021/12125cf0/attachment-0002.html>


More information about the webkit-unassigned mailing list