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

Description Xavier Morel 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.
Comment 1 Xavier Morel 2013-03-11 05:27:31 PDT
Created attachment 192448 [details]
Test case for growing the element by adding new children elements to it
Comment 2 Xavier Morel 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)
Comment 3 Robert Hogan 2013-03-19 04:11:21 PDT
Created attachment 193785 [details]
Patch
Comment 4 Dave Hyatt 2013-03-27 11:59:48 PDT
Comment on attachment 193785 [details]
Patch

r=me
Comment 5 WebKit Review Bot 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>
Comment 6 WebKit Review Bot 2013-03-27 16:48:06 PDT
All reviewed patches have been landed.  Closing bug.