Bug 111977 - Growing a position:absolute element in a position:relative one in a table does not update scrollHeight
Summary: Growing a position:absolute element in a position:relative one in a table doe...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Robert Hogan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-11 05:26 PDT by Xavier Morel
Modified: 2013-03-27 16:48 PDT (History)
5 users (show)

See Also:


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 Details
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 Details
Patch (8.65 KB, patch)
2013-03-19 04:11 PDT, Robert Hogan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.