[Webkit-unassigned] [Bug 75798] New: jQuery width() function messes up a table layout

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jan 8 07:17:24 PST 2012


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

           Summary: jQuery width() function messes up a table layout
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: romario333 at gmail.com


When you try to get width of a table cell using jQuery library, you can sometimes mess up a table layout. Here is an example: http://jsfiddle.net/romario333/9bqhA/

I've been able to reproduce this bug on Google Chrome 16, Safari 5.1.2 and WebKit nightly build r104398. IE 7-9 and Firefox 8 do not have this problem.

I've created reduction of this bug (attached). This is sequence of steps leading to the problem (extracted from jQuery's code):

1) Set cell's display to "block"
2) Set cell's position to "absolute".
3) Call elem.offsetWidth.
4) Set cell's display to "table-cell" and position to "".

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