Bug 100054 - position:sticky should stick for the enclosing overflow ancestor
Summary: position:sticky should stick for the enclosing overflow ancestor
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2012-10-22 16:45 PDT by Ojan Vafai
Modified: 2013-05-20 18:45 PDT (History)
9 users (show)

See Also:


Attachments
simple test case (237 bytes, text/html)
2012-10-22 16:45 PDT, Ojan Vafai
no flags Details
Patch (not ready for review) (6.64 KB, patch)
2013-05-19 19:29 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Patch (20.57 KB, patch)
2013-05-20 17:25 PDT, Simon Fraser (smfr)
bdakin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ojan Vafai 2012-10-22 16:45:07 PDT
As I've thought about this more, I don't see any reason we'd want the viewport to be any different from other scrollable containers WRT sticky behavior. As long as the containing block is not clipped, the sticky element shouldn't be either.
Comment 1 Ojan Vafai 2012-10-22 16:45:33 PDT
Created attachment 170024 [details]
simple test case
Comment 2 Simon Fraser (smfr) 2012-10-22 16:51:07 PDT
Yes, we plan to do this.
Comment 3 Radar WebKit Bug Importer 2012-10-24 22:46:39 PDT
<rdar://problem/12571189>
Comment 4 Simon Fraser (smfr) 2013-05-19 19:29:44 PDT
Created attachment 202249 [details]
Patch (not ready for review)
Comment 5 Simon Fraser (smfr) 2013-05-20 17:25:41 PDT
Created attachment 202333 [details]
Patch
Comment 6 Simon Fraser (smfr) 2013-05-20 18:45:54 PDT
http://trac.webkit.org/changeset/150395