Bug 144713 - Scroll-snap point coordinate values seem wrong
Summary: Scroll-snap point coordinate values seem wrong
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-06 15:05 PDT by Brent Fulgham
Modified: 2015-05-06 15:46 PDT (History)
0 users

See Also:


Attachments
Screen shot of the tests (showing scrollbars) (25.17 KB, image/png)
2015-05-06 15:45 PDT, Brent Fulgham
no flags Details

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