Bug 119280 - Bottom/right sticky positioning don't correctly handle scroll containers with padding
Summary: Bottom/right sticky positioning don't correctly handle scroll containers with...
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: Viatcheslav Ostapenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-30 15:26 PDT by Corey Ford
Modified: 2014-02-18 14:52 PST (History)
6 users (show)

See Also:


Attachments
Testcase (261 bytes, text/html)
2013-07-30 15:27 PDT, Corey Ford
no flags Details
Patch (7.42 KB, patch)
2014-02-16 21:13 PST, Viatcheslav Ostapenko
no flags Details | Formatted Diff | Diff

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