Bug 119280

Summary: Bottom/right sticky positioning don't correctly handle scroll containers with padding
Product: WebKit Reporter: Corey Ford <coyotebush22>
Component: Layout and RenderingAssignee: Viatcheslav Ostapenko <ostap73>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, glenn, kondapallykalyan, ostap73, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Testcase
none
Patch none

Description Corey Ford 2013-07-30 15:26:41 PDT
In the attached testcase, the bottom of the blue box should be 20px above the top of the horizontal scrollbar (assuming the intent is to position it relative to the content box of the scroll container). Instead, the bottom of the blue box is 20px below the top of the scrollbar. The same behavior holds for sticky-right positioning.

In general, sticky positioned elements appear to be positioned relative to a box that has the size of the scroll container's padding box, but the origin of the scroll container's content box. (And percentage sticky offsets also seem to be computed in terms of the padding box size.)
Comment 1 Corey Ford 2013-07-30 15:27:14 PDT
Created attachment 207773 [details]
Testcase
Comment 2 Viatcheslav Ostapenko 2014-02-16 21:13:48 PST
Created attachment 224328 [details]
Patch
Comment 3 WebKit Commit Bot 2014-02-18 14:52:26 PST
Comment on attachment 224328 [details]
Patch

Clearing flags on attachment: 224328

Committed r164324: <http://trac.webkit.org/changeset/164324>
Comment 4 WebKit Commit Bot 2014-02-18 14:52:28 PST
All reviewed patches have been landed.  Closing bug.