Bug 144927

Summary: Scroll snapping with padding in the container doesn't work
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: Layout and RenderingAssignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Brent Fulgham 2015-05-12 14:05:57 PDT
If you create a document with padding in the elements contained in the scroll-snap region, we get our calculations wrong and produce incorrect behavior.
Comment 1 Radar WebKit Bug Importer 2015-05-12 14:06:36 PDT
<rdar://problem/20923772>
Comment 2 Wenson Hsieh 2016-12-21 10:53:16 PST
Created attachment 297605 [details]
Patch
Comment 3 Brent Fulgham 2016-12-21 11:59:58 PST
Comment on attachment 297605 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=297605&action=review

Looks good, and EWS is happy. r=me.

> LayoutTests/css3/scroll-snap/scroll-snap-children-with-padding-expected.txt:1
> +Scroll-snap offsets are: vertical = { 0, 10, 625, 1240, 1660, 2275, 2890, 2920 }

I always get a little nervous about tests with specific pixel positions, since they can be flaky.
Comment 4 WebKit Commit Bot 2016-12-21 12:28:29 PST
Comment on attachment 297605 [details]
Patch

Clearing flags on attachment: 297605

Committed r210072: <http://trac.webkit.org/changeset/210072>
Comment 5 WebKit Commit Bot 2016-12-21 12:28:33 PST
All reviewed patches have been landed.  Closing bug.