Bug 111977

Summary: Growing a position:absolute element in a position:relative one in a table does not update scrollHeight
Product: WebKit Reporter: Xavier Morel <webkit.org>
Component: Layout and RenderingAssignee: Robert Hogan <robert>
Status: RESOLVED FIXED    
Severity: Normal CC: eric, esprehn+autocc, ojan.autocc, robert, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Test case for growing the element by setting its height
none
Test case for growing the element by adding new children elements to it
none
Patch none

Xavier Morel
Reported 2013-03-11 05:26:37 PDT
Created attachment 192447 [details] Test case for growing the element by setting its height * An element in position: absolute inside an element in posiiton: relative inside a table structure (table > tr > td) * The element is programmatically grown either explicitly (.style.height) or by adding sub-elements * The element's height results in it growing out of the current viewport Expected: a scrollbar appears on the page to see the bottom of the element's content (works in Opera, Firefox) Observed: no scrollbar appears (or the scrollbar does not update if there is already one) unless a complete refresh is forced (e.g. by resizing the browser) JSFiddle test case: http://jsfiddle.net/7v39e/ (click "grow" button to add 100px to the cyan element) See also attachment test cases.
Attachments
Test case for growing the element by setting its height (1.35 KB, text/html)
2013-03-11 05:26 PDT, Xavier Morel
no flags
Test case for growing the element by adding new children elements to it (1.38 KB, text/html)
2013-03-11 05:27 PDT, Xavier Morel
no flags
Patch (8.65 KB, patch)
2013-03-19 04:11 PDT, Robert Hogan
no flags
Xavier Morel
Comment 1 2013-03-11 05:27:31 PDT
Created attachment 192448 [details] Test case for growing the element by adding new children elements to it
Xavier Morel
Comment 2 2013-03-11 05:34:39 PDT
Forgotten note: tested in Safari 5.1.7 (OSX 10.6, Webkit 534.57.2) and Chrome 25.0.1364.160 (OSX 10.6, Webkit 537.22) as well as Mobile Safari 5.1 (iOS 5.1.1, Webkit 534.46). Non-webkit browser tests performed on Firefox 19.0.0 (OSX 10.6), Firefox 19.0.2 (OSX 10.6) and Opera 12.11 (OSX 10.6)
Robert Hogan
Comment 3 2013-03-19 04:11:21 PDT
Dave Hyatt
Comment 4 2013-03-27 11:59:48 PDT
Comment on attachment 193785 [details] Patch r=me
WebKit Review Bot
Comment 5 2013-03-27 16:48:03 PDT
Comment on attachment 193785 [details] Patch Clearing flags on attachment: 193785 Committed r147019: <http://trac.webkit.org/changeset/147019>
WebKit Review Bot
Comment 6 2013-03-27 16:48:06 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.