Bug 144713

Summary: Scroll-snap point coordinate values seem wrong
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=144647
Attachments:
Description Flags
Screen shot of the tests (showing scrollbars) none

Description Brent Fulgham 2015-05-06 15:05:04 PDT
The computed scroll-snap coordinate values seem off, perhaps by the size of the scrollbar.
Comment 1 Brent Fulgham 2015-05-06 15:41:53 PDT
This is almost certainly due to the scrollbars used in the test system. They are always shown, and take up a non-trivial chunk of the view. So I think these values are actually expected.
Comment 2 Brent Fulgham 2015-05-06 15:45:37 PDT
Created attachment 252533 [details]
Screen shot of the tests (showing scrollbars)

This screenshot shows what the tests look like during runs. The horizontal/vertical scrollbars effectively halve the size of the region used for display, so the snap points are calculated using that smaller size.

In this case, since scrollbars are are persistent and non-trivial in size, they have a significant impact on the layout.
Comment 3 Brent Fulgham 2015-05-06 15:45:55 PDT
Works as intended.